Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

♻️(frontend) refine Nginx config for DINUM frontend

lebaudantoineda1767c26163
diff --git a/docker/dinum-frontend/nginx/default.conf b/docker/dinum-frontend/nginx/default.conf
index bbb05726..6daead5c 100644
--- a/docker/dinum-frontend/nginx/default.conf
+++ b/docker/dinum-frontend/nginx/default.conf
@@ -13,20 +13,28 @@ server {
# Manifest — fetched, never iframed
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 Cache-Control "no-cache, no-store, must-revalidate";
- add_header X-Frame-Options "DENY";
- add_header Content-Security-Policy "frame-ancestors 'none'";
+ add_header Access-Control-Allow-Origin "*";
+ add_header Cache-Control "no-cache, no-store, must-revalidate";
+ add_header X-Frame-Options "DENY";
+ add_header Content-Security-Policy "frame-ancestors 'none'";
+ }
+
+ location = /addons/outlook/assets/ {
+ return 404;
+ }
+
+ location ~* ^/addons/outlook/assets/(.+\.(?:css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot))/?$ {
+ 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/assets/.+\.(css|js|json|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
- alias /usr/share/nginx/html/addons/outlook/assets/;
- 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(/.*)?$ {