generated from nhcarrigan/template
Compare commits
2 Commits
49fd7812dd
...
fb6080ae87
| Author | SHA1 | Date | |
|---|---|---|---|
|
fb6080ae87
|
|||
|
f6c4e2dac7
|
@@ -1,5 +1,5 @@
|
||||
# Auto-generated Cloudflare IP ranges
|
||||
# Updated: Thu Apr 16 10:50:50 PM PDT 2026
|
||||
# Updated: Sun Apr 19 10:51:11 PM PDT 2026
|
||||
|
||||
real_ip_header CF-Connecting-IP;
|
||||
|
||||
|
||||
@@ -18,7 +18,18 @@ server {
|
||||
return 301 $scheme://$host/avatars/$1;
|
||||
}
|
||||
|
||||
# Handle CORS preflight requests without the "if is evil" pattern.
|
||||
location / {
|
||||
if ($request_method = OPTIONS) {
|
||||
add_header Access-Control-Allow-Origin "*" always;
|
||||
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range" always;
|
||||
add_header Access-Control-Max-Age 86400 always;
|
||||
add_header Content-Type "text/plain; charset=utf-8";
|
||||
add_header Content-Length 0;
|
||||
return 204;
|
||||
}
|
||||
|
||||
proxy_pass https://nhcarrigan.hel1.your-objectstorage.com;
|
||||
proxy_set_header Host nhcarrigan.hel1.your-objectstorage.com;
|
||||
|
||||
@@ -32,22 +43,12 @@ server {
|
||||
proxy_set_header x-amz-date "";
|
||||
proxy_set_header x-amz-security-token "";
|
||||
|
||||
add_header X-Debug-Cdn "Proxy-Active" always;
|
||||
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
|
||||
add_header X-Debug-Cdn "Proxy-Active" always;
|
||||
add_header Access-Control-Allow-Origin "*" always;
|
||||
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range" always;
|
||||
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header Access-Control-Allow-Origin "*" always;
|
||||
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always;
|
||||
add_header Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range" always;
|
||||
add_header Content-Type "text/plain; charset=utf-8";
|
||||
add_header Content-Length 0;
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
include /etc/nginx/snippets/deny-dotfiles.conf;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Static content and publishing sites: blog, books, donate, music, secrets, style, testimonials.
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name blog.nhcarrigan.com;
|
||||
@@ -46,6 +45,34 @@ server {
|
||||
include /etc/nginx/snippets/deny-dotfiles.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name grimoire.nhcarrigan.com;
|
||||
ssl_certificate /etc/letsencrypt/live/grimoire.nhcarrigan.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/grimoire.nhcarrigan.com/privkey.pem;
|
||||
|
||||
root /home/naomi/grimoire;
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
}
|
||||
include /etc/nginx/snippets/deny-dotfiles.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name memes.nhcarrigan.com;
|
||||
ssl_certificate /etc/letsencrypt/live/memes.nhcarrigan.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/memes.nhcarrigan.com/privkey.pem;
|
||||
|
||||
root /home/naomi/memes;
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
}
|
||||
include /etc/nginx/snippets/deny-dotfiles.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name music.nhcarrigan.com;
|
||||
|
||||
Reference in New Issue
Block a user