1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

fix __DOMAIN__ variable

This commit is contained in:
Thomas 2023-12-13 20:20:03 +01:00 committed by GitHub
parent cdc2bc3f87
commit 70be271df9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,36 +8,36 @@
charset utf-8; charset utf-8;
location /api/ { location /api/ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
# This is needed if you have file import via upload enabled. # This is needed if you have file import via upload enabled.
client_max_body_size 100M; client_max_body_size 100M;
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
} }
location ~ ^/library/(albums|tracks|artists|playlists)/ { location ~ ^/library/(albums|tracks|artists|playlists)/ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
} }
location /channels/ { location /channels/ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
} }
location ~ ^/@(vite-plugin-pwa|vite|id)/ { location ~ ^/@(vite-plugin-pwa|vite|id)/ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
alias __INSTALL_DIR__/front/dist/; alias __INSTALL_DIR__/front/dist/;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location /@ { location /@ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
} }
location / { location / {
expires 1d; expires 1d;
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
alias __INSTALL_DIR__/front/dist/; alias __INSTALL_DIR__/front/dist/;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
@ -51,18 +51,18 @@
} }
location /federation/ { location /federation/ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
} }
# You can comment this if you do not plan to use the Subsonic API. # You can comment this if you do not plan to use the Subsonic API.
location /rest/ { location /rest/ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
proxy_pass http://127.0.0.1:__PORT__/api/subsonic/rest/; proxy_pass http://127.0.0.1:__PORT__/api/subsonic/rest/;
} }
location /.well-known/ { location /.well-known/ {
include /etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf; include /etc/nginx/conf.d/__DOMAIN__.d/funkwhale_proxy.conf;
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
} }