mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-29 11:47:15 +00:00
♻️(frontend) refine Nginx config for DINUM frontend
Lint and clean up the Nginx configuration. Fix an issue affecting static asset serving.
This commit is contained in:
committed by
aleb_the_flash
parent
dd3d47afe6
commit
da1767c261
@@ -13,20 +13,28 @@ server {
|
|||||||
|
|
||||||
# Manifest — fetched, never iframed
|
# Manifest — fetched, never iframed
|
||||||
location = /addons/outlook/manifest.xml {
|
location = /addons/outlook/manifest.xml {
|
||||||
alias /usr/share/nginx/html/addons/outlook/manifest.xml;
|
alias /usr/share/nginx/html/addons/outlook/manifest.xml;
|
||||||
|
|
||||||
add_header Access-Control-Allow-Origin "*";
|
add_header Access-Control-Allow-Origin "*";
|
||||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
add_header X-Frame-Options "DENY";
|
add_header X-Frame-Options "DENY";
|
||||||
add_header Content-Security-Policy "frame-ancestors 'none'";
|
add_header Content-Security-Policy "frame-ancestors 'none'";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* ^/addons/outlook/assets/.+\.(css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
location = /addons/outlook/assets/ {
|
||||||
alias /usr/share/nginx/html/addons/outlook/assets/;
|
return 404;
|
||||||
expires 30d;
|
}
|
||||||
add_header Cache-Control "public, max-age=2592000, immutable" always;
|
|
||||||
add_header Access-Control-Allow-Origin "*";
|
location ~* ^/addons/outlook/assets/(.+\.(?:css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot))/?$ {
|
||||||
add_header Vary "Origin" always;
|
root /usr/share/nginx/html;
|
||||||
|
expires 30d;
|
||||||
|
add_header Cache-Control "public, max-age=2592000, immutable" always;
|
||||||
|
add_header Access-Control-Allow-Origin "*";
|
||||||
|
add_header Vary "Origin" always;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /addons/outlook/ {
|
||||||
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/addons/outlook(/.*)?$ {
|
location ~ ^/addons/outlook(/.*)?$ {
|
||||||
|
|||||||
Reference in New Issue
Block a user