Last active
February 23, 2018 21:12
-
-
Save saltandvinegarcrisps/61ac345db71e51b3396b824ce67a3899 to your computer and use it in GitHub Desktop.
mopidy port 80 proxy pass with nginx on raspberry pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I want to setup at folder?
location /mopidy {