Update nginx.conf
This commit is contained in:
parent
d55ea26edb
commit
58716e5826
@ -21,20 +21,13 @@ server {
|
||||
expires -1;
|
||||
}
|
||||
|
||||
# CRA generates filenames with hashes so we can
|
||||
# Vite generates filenames with hashes so we can
|
||||
# tell the browser to keep in cache the resources.
|
||||
location ~* \.(?:css|js|md|woff2?|eot|ttf|xml)$ {
|
||||
expires 1y;
|
||||
access_log off;
|
||||
add_header Cache-Control "public";
|
||||
|
||||
# Allow fonts and scripts to be downloaded from pages
|
||||
# served by Keycloak (CORS for --external-request)
|
||||
# We allow .md for beeing able to fetch the terms of service.
|
||||
location ~* \.(?:js|woff2?|eot|ttf|xml|md)$ {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user