Files
ydwl-website/nginx.conf.example
2026-08-31 16:23:40 +08:00

15 lines
360 B
Plaintext

server {
listen 80;
server_name example.com;
root /var/www/ydwl-website;
# Serve the .gz files emitted by `npm run build` when the client supports gzip.
gzip_static on;
gzip_vary on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml application/xml;
location / {
try_files $uri $uri/ /index.html;
}
}