From 347c36526205a81385f10cdb301f94fb05118339 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 2 Aug 2026 13:40:25 -0500 Subject: update rogue --- linux/nginx/etc/nginx/conf.d/1kb.conf | 29 --------------------------- linux/nginx/etc/nginx/conf.d/rogue.conf | 24 ++++++++++++++++++++++ linux/nginx/etc/nginx/conf.d/zerolabs.sh.conf | 15 +++++++++----- 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 linux/nginx/etc/nginx/conf.d/1kb.conf create mode 100644 linux/nginx/etc/nginx/conf.d/rogue.conf (limited to 'linux/nginx') diff --git a/linux/nginx/etc/nginx/conf.d/1kb.conf b/linux/nginx/etc/nginx/conf.d/1kb.conf deleted file mode 100644 index f12fe40..0000000 --- a/linux/nginx/etc/nginx/conf.d/1kb.conf +++ /dev/null @@ -1,29 +0,0 @@ -server { - listen 10001; - server_name 1kb.zerolabs.sh 1kb.cleberg.net; - - if ($host = 1kb.cleberg.net) { - return 301 https://1kb.zerolabs.sh$request_uri; - } - - root /var/www/1kb; - index index.html; - - server_tokens off; - etag off; - if_modified_since off; - expires off; - gzip off; - gzip_vary off; - charset off; - - - location = / { - try_files /index.html =404; - } - - location = /index.html { - try_files /index.html =404; - } -} - diff --git a/linux/nginx/etc/nginx/conf.d/rogue.conf b/linux/nginx/etc/nginx/conf.d/rogue.conf new file mode 100644 index 0000000..03e0b98 --- /dev/null +++ b/linux/nginx/etc/nginx/conf.d/rogue.conf @@ -0,0 +1,24 @@ +server { + listen 10001; + server_name rogue.krz.sh; + + root /var/www/rogue; + index index.html; + + server_tokens off; + etag off; + if_modified_since off; + expires off; + gzip off; + gzip_vary off; + charset off; + + location = / { + try_files /index.html =404; + } + + location = /index.html { + try_files /index.html =404; + } +} + diff --git a/linux/nginx/etc/nginx/conf.d/zerolabs.sh.conf b/linux/nginx/etc/nginx/conf.d/zerolabs.sh.conf index 34059dc..afdc3e3 100644 --- a/linux/nginx/etc/nginx/conf.d/zerolabs.sh.conf +++ b/linux/nginx/etc/nginx/conf.d/zerolabs.sh.conf @@ -1,7 +1,12 @@ +# zerolabs.sh -> krz.sh (301, preserves subdomain + path + query) +map $host $krz_target { + default krz.sh; + "~^(?.+)\.zerolabs\.sh$" "$sub.krz.sh"; +} + server { - listen 10000; - server_name zerolabs.sh; - root /var/www/zerolabs.sh/; - include custom.d/basic.conf; - location / { try_files $uri $uri/ =404; } + listen 10000; + server_name zerolabs.sh *.zerolabs.sh; + + return 301 https://$krz_target$request_uri; } -- cgit v1.2.3