nodejs-vue3-deploy-k8s/nginx.default.conf
Mingor(100757) 87885a299b
Some checks failed
CI/CD / build-and-deploy (push) Failing after 1m56s
done.
2024-09-18 15:18:56 +08:00

26 lines
640 B
Plaintext

server {
listen 80;
gzip_static on;
gzip_proxied expired no-cache no-store private auth;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
gzip_comp_level 9;
gzip_disable "MSIE [1-6]\.";
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
location /config.json {
default_type application/json;
alias /usr/share/nginx/html/config.json;
}
}