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

fix nginx

This commit is contained in:
Thomas 2023-06-03 22:19:41 +02:00 committed by GitHub
parent 309b41d98f
commit 0171ac1fe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -159,7 +159,6 @@ LDAP_ROOT_DN=ou=users,dc=yunohost,dc=org
LDAP_USER_ATTR_MAP=username:uid
FUNKWHALE_FRONTEND_PATH=__INSTALL_DIR__/front/dist
FUNKWHALE_SPA_HTML_ROOT=__INSTALL_DIR__/front/dist/index.html
# Nginx related configuration
NGINX_MAX_BODY_SIZE=100M

View file

@ -1,4 +1,4 @@
root __INSTALL_DIR__/front;
root __INSTALL_DIR__/front/dist;
location /api/ {
@ -22,7 +22,7 @@ location /api/ {
}
location / {
alias __INSTALL_DIR__/front/;
alias __INSTALL_DIR__/front/dist/;
expires 1d;
try_files $uri $uri/ /index.html;
}
@ -31,7 +31,7 @@ location /embed.html {
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";
alias __INSTALL_DIR__/front/embed.html;
alias __INSTALL_DIR__/front/dist/embed.html;
expires 1d;
}