Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
poeppe
funkwhale
Commits
08f54b1f
Commit
08f54b1f
authored
Apr 26, 2022
by
JuniorJPDJ
Committed by
Georg Krause
Apr 26, 2022
Browse files
Fix nitpicks in nginx configs (#1730) NOCHANGELOG
parent
9045cbbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
deploy/docker.nginx.template
View file @
08f54b1f
...
...
@@ -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
...
...
deploy/nginx.template
View file @
08f54b1f
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment