diff --git a/deploy/prod/nginx.conf.tmpl b/deploy/prod/nginx.conf.tmpl index d14f201498cf11fcf6b828d0982ae644f2c0bb9a..138aacdeb405561d0e11434c8e9c6f015f664da0 100644 --- a/deploy/prod/nginx.conf.tmpl +++ b/deploy/prod/nginx.conf.tmpl @@ -67,12 +67,9 @@ http { add_header X-Content-Type-Options nosniff; add_header Referrer-Policy "no-referrer"; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; always"; + add_header Cache-Control "no-cache"; add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: base64;"; - add_header Cache-Control "no-cache,no-store,must-revalidate"; - add_header X-Accel-Buffering no; - add_header Pragma no-cache; - add_header Expires 0; - + limit_conn limitperip 50; ${SSL_SETTINGS} @@ -121,15 +118,11 @@ http { location /api/ { proxy_set_header X-Forwarded-For $http_x_real_ip; - add_header X-XSS-Protection "1; mode=block"; - add_header X-Content-Type-Options nosniff; - add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"; add_header Cache-Control "no-cache,no-store,must-revalidate"; add_header X-Accel-Buffering no; - add_header Pragma no-cache; - add_header Expires 0; proxy_buffering off; proxy_intercept_errors on; + error_page 404 /404.html; limit_req zone=ratelimit burst=15 nodelay; proxy_read_timeout 500s; diff --git a/src/assets/fonts/HarmonyOS_Sans_SC_Medium.ttf b/src/assets/fonts/HarmonyOS_Sans_SC_Medium.ttf deleted file mode 100644 index 6d8eab7f749328780ec0843ac557cfbf36e5e1e6..0000000000000000000000000000000000000000 Binary files a/src/assets/fonts/HarmonyOS_Sans_SC_Medium.ttf and /dev/null differ diff --git a/vite.config.ts b/vite.config.ts index 1229411d4dcf007750fac8bb709e8e68f8245c62..d776034f8e8f9ed09c926a86a37a767d90bc2174 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -40,6 +40,7 @@ export default ({ mode }): UserConfigExport => { }) ], build: { + minify: "esbuild", rollupOptions: { output: { manualChunks(id) {