Update references for Docker
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
5e5d23ec76
commit
be22f2f2e8
4 changed files with 79 additions and 79 deletions
|
|
@ -1,10 +1,10 @@
|
|||
upstream funkwhale-api {
|
||||
upstream funquail-api {
|
||||
# depending on your setup, you may want to update this
|
||||
server ${FUNKWHALE_API_HOST}:${FUNKWHALE_API_PORT};
|
||||
server ${FUNQUAIL_API_HOST}:${FUNQUAIL_API_PORT};
|
||||
}
|
||||
|
||||
upstream funkwhale-front {
|
||||
server ${FUNKWHALE_FRONT_IP}:${FUNKWHALE_FRONT_PORT};
|
||||
upstream funquail-front {
|
||||
server ${FUNQUAIL_FRONT_IP}:${FUNQUAIL_FRONT_PORT};
|
||||
}
|
||||
|
||||
# Required for websocket support.
|
||||
|
|
@ -58,40 +58,40 @@ server {
|
|||
add_header Service-Worker-Allowed "/";
|
||||
|
||||
location /api/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
# This is needed if you have file import via upload enabled.
|
||||
client_max_body_size ${NGINX_MAX_BODY_SIZE};
|
||||
proxy_pass http://funkwhale-api;
|
||||
proxy_pass http://funquail-api;
|
||||
}
|
||||
|
||||
location ~ ^/library/(albums|tracks|artists|playlists)/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-api;
|
||||
}
|
||||
|
||||
location /channels/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-api;
|
||||
}
|
||||
|
||||
location ~ ^/@(vite-plugin-pwa|vite|id)/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-front;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-front;
|
||||
}
|
||||
|
||||
location /@ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-api;
|
||||
}
|
||||
|
||||
location / {
|
||||
expires 1d;
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-front;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-front;
|
||||
}
|
||||
|
||||
location = /embed.html {
|
||||
proxy_pass http://funkwhale-front;
|
||||
proxy_pass http://funquail-front;
|
||||
add_header Content-Security-Policy "connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
|
||||
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||||
|
||||
|
|
@ -99,19 +99,19 @@ server {
|
|||
}
|
||||
|
||||
location /federation/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-api;
|
||||
}
|
||||
|
||||
# You can comment this if you do not plan to use the Subsonic API.
|
||||
location /rest/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api/api/subsonic/rest/;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-api/api/subsonic/rest/;
|
||||
}
|
||||
|
||||
location /.well-known/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
proxy_pass http://funquail-api;
|
||||
}
|
||||
|
||||
# Allow direct access to only specific subdirectories in /media
|
||||
|
|
@ -158,7 +158,7 @@ server {
|
|||
|
||||
location /manifest.json {
|
||||
# If the reverse proxy is terminating SSL, nginx gets confused and redirects to http, hence the full URL
|
||||
return 302 ${FUNKWHALE_PROTOCOL}://${FUNKWHALE_HOSTNAME}/api/v1/instance/spa-manifest.json;
|
||||
return 302 ${FUNQUAIL_PROTOCOL}://${FUNQUAIL_HOSTNAME}/api/v1/instance/spa-manifest.json;
|
||||
}
|
||||
|
||||
location /staticfiles/ {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue