Skip to content

Instantly share code, notes, and snippets.

@saltandvinegarcrisps
Last active February 23, 2018 21:12
Show Gist options
  • Save saltandvinegarcrisps/61ac345db71e51b3396b824ce67a3899 to your computer and use it in GitHub Desktop.
Save saltandvinegarcrisps/61ac345db71e51b3396b824ce67a3899 to your computer and use it in GitHub Desktop.
mopidy port 80 proxy pass with nginx on raspberry pi
server {
listen 80 default_server;
server_name _;
location / {
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 /(.*) /musicbox_webclient/$1 break;
proxy_redirect off;
}
}
@ezar
Copy link

ezar commented Feb 23, 2018

If I want to setup at folder?
location /mopidy {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment