2018-04-17 00:02:25 +02:00
|
|
|
|
2019-02-15 06:46:40 +01:00
|
|
|
location / {
|
|
|
|
include __FINALPATH__/code/deploy/funkwhale_proxy.conf;
|
|
|
|
# this is needed if you have file import via upload enabled
|
|
|
|
client_max_body_size 100M;
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__/;
|
2018-04-17 00:02:25 +02:00
|
|
|
}
|
|
|
|
|
2019-01-26 20:00:47 +01:00
|
|
|
location /front/ {
|
2019-02-15 06:46:40 +01:00
|
|
|
alias __FINALPATH__/code/front/dist/;
|
|
|
|
expires 30d;
|
|
|
|
add_header Pragma public;
|
|
|
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
2018-04-17 00:02:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location /federation/ {
|
2018-10-21 10:59:28 +02:00
|
|
|
include __FINALPATH__/code/deploy/funkwhale_proxy.conf;
|
2018-04-17 00:02:25 +02:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__/federation/;
|
|
|
|
}
|
|
|
|
|
2019-02-15 06:46:40 +01:00
|
|
|
|
|
|
|
location /rest/ {
|
|
|
|
include __FINALPATH__/code/deploy/funkwhale_proxy.conf;
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__/api/subsonic/rest/;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-05-10 18:54:23 +02:00
|
|
|
location /.well-known/ {
|
2018-10-21 10:59:28 +02:00
|
|
|
include __FINALPATH__/code/deploy/funkwhale_proxy.conf;
|
2018-05-10 18:54:23 +02:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__/.well-known/;
|
2018-04-17 00:02:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location /media/ {
|
2018-10-21 10:59:28 +02:00
|
|
|
alias __FINALPATH__/media/;
|
2018-04-17 00:02:25 +02:00
|
|
|
}
|
|
|
|
|
2019-02-15 06:46:40 +01:00
|
|
|
location /_protected/media/ {
|
2018-04-17 00:02:25 +02:00
|
|
|
# this is an internal location that is used to serve
|
|
|
|
# audio files once correct permission / authentication
|
|
|
|
# has been checked on API side
|
|
|
|
internal;
|
2018-10-21 10:59:28 +02:00
|
|
|
alias __FINALPATH__/media/;
|
2018-04-17 00:02:25 +02:00
|
|
|
}
|
|
|
|
|
2019-02-15 06:46:40 +01:00
|
|
|
location /_protected/music/ {
|
2018-04-17 00:02:25 +02:00
|
|
|
internal;
|
2019-02-15 06:46:40 +01:00
|
|
|
alias __FINALPATH__/import/;
|
2018-04-17 00:02:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location /staticfiles/ {
|
|
|
|
# django static files
|
2018-10-21 10:59:28 +02:00
|
|
|
alias __FINALPATH__/code/data/static/;
|
2019-02-15 06:46:40 +01:00
|
|
|
}
|