feat: add nginx config for tarot static site
Test nginx configuration / Static Analysis (push) Failing after 5s
Test nginx configuration / nginx Syntax Check (push) Successful in 18s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m23s

Serves only index.html and cards/*.json — all other paths return 403.
This commit is contained in:
2026-03-18 11:28:11 -07:00
committed by Naomi Carrigan
parent 7e1929f308
commit 1d24a85e07
+21
View File
@@ -0,0 +1,21 @@
# Tarot static site.
server {
listen 443 ssl;
server_name tarot.nhcarrigan.com;
ssl_certificate /etc/letsencrypt/live/tarot.nhcarrigan.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tarot.nhcarrigan.com/privkey.pem;
root /home/naomi/tarot;
location = / {
try_files /index.html =404;
}
location ~ \.json$ {
try_files $uri =404;
}
location / {
return 403;
}
}