fix: nginx setup
This commit is contained in:
1 parent
400e0408f3
commit
40b6afd85c
5 files changed
+31
-11
No files matched your search
+5
-2
@@ -4,6 +4,9 @@ server {
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
# Weiterleitung von /ue1 auf /ue1/ relativ, damit sie hinter einem Reverse Proxy stimmt
|
||||
absolute_redirect off;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/css application/javascript image/svg+xml;
|
||||
|
||||
@@ -12,8 +15,8 @@ server {
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
# Dateinamen in /assets enthalten einen Hash und ändern sich mit jedem Build
|
||||
location /assets/ {
|
||||
# Dateinamen in assets/ enthalten einen Hash und ändern sich mit jedem Build
|
||||
location ~ /assets/ {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user