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,6 +1,6 @@
|
|||
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};
|
||||
}
|
||||
|
||||
# Required for websocket support.
|
||||
|
|
@ -54,36 +54,36 @@ 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;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
alias /usr/share/nginx/html/;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
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;
|
||||
include /etc/nginx/funquail_proxy.conf;
|
||||
alias /usr/share/nginx/html/;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
|
@ -97,19 +97,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
|
||||
|
|
@ -156,7 +156,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;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue