diff options
| author | Leitwolf | 2026-11-16 18:11:50 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-16 18:11:50 +0300 |
| commit | 1d669cd07fa4ee23d1d1d116a90dabd95d2daa81 (patch) | |
| tree | eb76a51454bb85aff0ee5ec43a142b8d16f90a86 /ops/nginx | |
| parent | cd4f0c3fb7b77640f55a807d306ae8389283f9f7 (diff) | |
| parent | 62faa7158ce51495dcdd09e7858c23faee707cfd (diff) | |
| download | progmaweb-main.tar.gz | |
Serve the Catch3 site at catch3.uk
Diffstat (limited to 'ops/nginx')
| -rw-r--r-- | ops/nginx/progmaweb.conf | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/ops/nginx/progmaweb.conf b/ops/nginx/progmaweb.conf index f4107ee..59dee68 100644 --- a/ops/nginx/progmaweb.conf +++ b/ops/nginx/progmaweb.conf @@ -418,8 +418,7 @@ server { } } -# The product catalog (product.progmasoft.com) and the product site Progmaweb -# serves itself (catch3.progmasoft.com): pages of the Next.js site only. +# The product catalog (product.progmasoft.com): pages of the Next.js site only. server { listen 80; listen [::]:80; @@ -465,6 +464,7 @@ server { } } +# catch3.progmasoft.com was Catch3's site; every path moves to catch3.uk. server { listen 80; listen [::]:80; @@ -476,7 +476,7 @@ server { } location / { - return 308 https://catch3.progmasoft.com$request_uri; + return 308 https://catch3.uk$request_uri; } } @@ -490,6 +490,60 @@ server { ssl_certificate_key /etc/letsencrypt/live/progmasoft.com/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; + add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + + location / { + return 308 https://catch3.uk$request_uri; + } +} + +# catch3.uk: the site of Catch3, pages of the Next.js site only. www goes to +# the bare name. +server { + listen 80; + listen [::]:80; + server_name catch3.uk www.catch3.uk; + server_tokens off; + + location ^~ /.well-known/acme-challenge/ { + root /var/lib/letsencrypt; + default_type text/plain; + } + + location / { + return 308 https://catch3.uk$request_uri; + } +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + http2 on; + server_name www.catch3.uk; + server_tokens off; + + ssl_certificate /etc/letsencrypt/live/catch3.uk/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/catch3.uk/privkey.pem; + include /etc/letsencrypt/options-ssl-nginx.conf; + + add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; + + location / { + return 308 https://catch3.uk$request_uri; + } +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + http2 on; + server_name catch3.uk; + server_tokens off; + + ssl_certificate /etc/letsencrypt/live/catch3.uk/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/catch3.uk/privkey.pem; + include /etc/letsencrypt/options-ssl-nginx.conf; + client_max_body_size 1m; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; |