Files
homaroma/serverinfo/pkh-nginx/spa.pkh.kitizone.com.conf
2026-07-12 06:35:19 -04:00

33 lines
744 B
Plaintext

server {
listen 80;
server_name spa.pkh.kitizone.com;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name spa.pkh.kitizone.com;
ssl_certificate /etc/letsencrypt/live/spa.pkh.kitizone.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/spa.pkh.kitizone.com/privkey.pem;
root /usr/share/nginx/html/pkh/spa;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html;
}
# Caching for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires max;
log_not_found off;
}
}