homelab/ansible/roles/polsevev.dev/files/polsevev.dev.conf

16 lines
521 B
Text
Raw Normal View History

server {
server_name polsevev.dev;
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/nginx/acme.sh/polsevev.dev.cert.pem;
ssl_certificate_key /etc/nginx/acme.sh/polsevev.dev.key.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
root /var/www/polsevev/dist;
index index.html;
location / {
try_files $uri $uri/ =404; # Make the server respond with 404 - Not found if requested file isn't present
}
}