question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m trying to use iris behind nginx proxy. I configure but it doesn’t works! Can you help me?

        location /mopidy {
                proxy_buffering off;
                proxy_pass http://127.0.0.1:6680;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                rewrite /mopidy/(.*) /mopidy/$1 break;
                rewrite /(.*) /iris/$1 break;
                proxy_redirect off;
        }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
421pcommented, Oct 14, 2018

My working config might also be useful for someone: nginx on openwrt, 192.168.1.13 - raspberry pi

server {
  listen       80;
  server_name  mopidy.lan;

  location / {
    proxy_pass         http://192.168.1.13:6680/iris/;
    proxy_redirect     off;
    proxy_set_header   Host             $host;
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection "upgrade";
  }

  location /mopidy/ {
    proxy_pass         http://192.168.1.13:6680;
    proxy_redirect     off;
    proxy_set_header   Host             $host;
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection "upgrade";
  }

  location /iris/ {
    proxy_pass         http://192.168.1.13:6680/iris/;
    proxy_redirect     off;
    proxy_set_header   Host             $host;
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection "upgrade";
  }
}
2reactions
Informaticcommented, Mar 23, 2018
    server {
        listen       80;
        server_name  localhost;

        proxy_http_version 1.1;
        proxy_read_timeout 600s;
        location = / {
                return 301 /iris/;
        }

        location / {
                proxy_pass http://mopidy/;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection $http_connection;
        }
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

NGINX Reverse Proxy
Configure NGINX as a reverse proxy for HTTP and other protocols, with support for modifying request headers and fine-tuned buffering of responses.
Read more >
Automated nginx proxy for Docker containers using ...
nginx -proxy sets up a container running nginx and docker-gen. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are ......
Read more >
nginx
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by...
Read more >
Nginx Proxy Manager
Built as a Docker Image, Nginx Proxy Manager only requires a database. Multiple Users. Configure other users to either view or manage their...
Read more >
How to setup an Nginx reverse proxy server example
Nginx reverse proxy configuration steps · Install Nginx on your Windows or Linux server (prerequisite). · Add the Nginx proxy_pass setting in a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found