From 58716e582650787645cd9554620d47d485aff77a Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 15 Feb 2024 16:56:43 +0100 Subject: [PATCH] Update nginx.conf --- nginx.conf | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/nginx.conf b/nginx.conf index aad7ab3..50b4293 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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 *; - } - } }