fix: forward websocket upgrade headers for forms.nhcarrigan.com, sync hisho.nhcarrigan.com block and cloudflare ip refresh from server
Test nginx configuration / Static Analysis (push) Failing after 5s
Test nginx configuration / nginx Syntax Check (push) Failing after 17s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m50s

This commit is contained in:
2026-07-09 12:02:29 -07:00
committed by Naomi Carrigan
parent 9cb4bf9a07
commit 05cc6fd026
3 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Auto-generated Cloudflare IP ranges # Auto-generated Cloudflare IP ranges
# Updated: Wed Jun 10 10:59:21 PM PDT 2026 # Updated: Wed Jul 8 11:01:39 PM PDT 2026
real_ip_header CF-Connecting-IP; real_ip_header CF-Connecting-IP;
+19
View File
@@ -17,3 +17,22 @@ server {
} }
include /etc/nginx/snippets/deny-dotfiles.conf; include /etc/nginx/snippets/deny-dotfiles.conf;
} }
server {
listen 443 ssl;
server_name hisho.nhcarrigan.com;
ssl_certificate /etc/letsencrypt/live/hisho.nhcarrigan.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hisho.nhcarrigan.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:44124;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
include /etc/nginx/snippets/deny-dotfiles.conf;
}
+2
View File
@@ -156,6 +156,8 @@ server {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:11111; proxy_pass http://127.0.0.1:11111;
proxy_redirect off; proxy_redirect off;
} }