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:
parent
309b41d98f
commit
0171ac1fe9
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue