initial commit
This commit is contained in:
27
deployment/music-nginx.conf
Normal file
27
deployment/music-nginx.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
|
||||
# forward for ympd
|
||||
location / {
|
||||
proxy_pass http://localhost:8080/;
|
||||
}
|
||||
|
||||
# forward to deezer-downloader
|
||||
location /d/ {
|
||||
rewrite /d/(.*) /$1 break;
|
||||
proxy_pass http://localhost:8081/;
|
||||
}
|
||||
|
||||
# used by flask_autoindex
|
||||
location /__autoindex__/ {
|
||||
proxy_pass http://localhost:8081/__autoindex__/;
|
||||
}
|
||||
|
||||
# used by flask_autoindex
|
||||
location /__icons__/ {
|
||||
proxy_pass http://localhost:8081/__icons__/;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user