Commit 08f54b1f authored by JuniorJPDJ's avatar JuniorJPDJ Committed by Georg Krause
Browse files

Fix nitpicks in nginx configs (#1730) NOCHANGELOG

parent 9045cbbd
......@@ -47,7 +47,7 @@ server {
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location /front/embed.html {
location = /front/embed.html {
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:";
add_header Referrer-Policy "strict-origin-when-cross-origin";
......@@ -81,7 +81,7 @@ server {
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
location /_protected/media {
location /_protected/media/ {
internal;
alias ${MEDIA_ROOT};
......@@ -95,7 +95,7 @@ server {
# proxy_pass $1;
# }
location /_protected/music {
location /_protected/music/ {
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
......
......@@ -93,7 +93,7 @@ server {
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location /front/embed.html {
location = /front/embed.html {
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:; worker-src 'self'";
add_header Referrer-Policy "strict-origin-when-cross-origin";
......@@ -124,7 +124,7 @@ server {
alias ${MEDIA_ROOT}/;
}
location /_protected/media {
location /_protected/media/ {
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
......@@ -141,7 +141,7 @@ server {
# proxy_pass $1;
# }
location /_protected/music {
location /_protected/music/ {
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment