1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mopidy_ynh.git synced 2024-09-03 19:46:21 +02:00

Update nginx.conf

This commit is contained in:
siwinter 2021-03-19 20:38:51 +01:00 committed by GitHub
parent 8e386dee83
commit bce7908698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
location /mopidy/ws/ {
location /mopidy/ws {
# Force usage of https
if ($scheme = http) {
@ -22,7 +22,7 @@ location __PATH__/ {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://localhost:__PORT__/musicbox_webclient;
proxy_pass http://localhost:__PORT__/musicbox_webclient/;
proxy_http_version 1.1;
proxy_set_header Host $host;
@ -37,7 +37,7 @@ location /musicbox_webclient/ {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://localhost:6680/musicbox_webclient;
proxy_pass http://localhost:6680;
proxy_http_version 1.1;
proxy_set_header Host $host;
@ -52,7 +52,7 @@ location /local/ {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://localhost:6680/local;
proxy_pass http://localhost:6680;
proxy_http_version 1.1;
proxy_set_header Host $host;