Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2547>
environments/review-docs-2085-h577jp/deployments/18808
Ciarán Ainsworth 2023-11-23 08:43:16 +00:00 zatwierdzone przez Marge
rodzic 88d7bdb8ab
commit 4cfa3a4f71
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -81,7 +81,7 @@ server {
location / {
expires 1d;
proxy_pass http://fw
proxy_pass http://fw;
}
}

Wyświetl plik

@ -50,7 +50,7 @@ server {
# General configs
root ${FUNKWHALE_FRONTEND_PATH},
root ${FUNKWHALE_FRONTEND_PATH};
client_max_body_size ${NGINX_MAX_BODY_SIZE};
charset utf-8;
@ -95,12 +95,12 @@ server {
location / {
expires 1d;
alias ${FUNKWHALE_FRONTEND_PATH}/,
alias ${FUNKWHALE_FRONTEND_PATH}/;
try_files $uri $uri/ /index.html;
}
location ~ "/(front/)?embed.html" {
alias ${FUNKWHALE_FRONTEND_PATH}/embed.html,
alias ${FUNKWHALE_FRONTEND_PATH}/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";