31 lines
657 B
Plaintext
31 lines
657 B
Plaintext
server {
|
|
listen 127.0.0.1:5177;
|
|
server_name web.sbnews.net;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
access_log /var/log/nginx/h5_access.log;
|
|
error_log /var/log/nginx/h5_error.log;
|
|
|
|
location = /healthz {
|
|
access_log off;
|
|
default_type text/plain;
|
|
return 200 "ok\n";
|
|
}
|
|
|
|
location = /index.html {
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location ~* \.(?:css|js|jpg|jpeg|gif|png|svg|ico|webp|woff2?)$ {
|
|
expires 7d;
|
|
add_header Cache-Control "public, immutable";
|
|
try_files $uri =404;
|
|
}
|
|
}
|