diff options
| author | Leitwolf11 | 2026-08-14 00:00:25 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-08-14 00:00:25 +0300 |
| commit | 2804c141aacf27d2e4ca381a39b4ffa2ea36c6c8 (patch) | |
| tree | bfb6d2ba50ca881583266e3647959922bf4b1250 | |
| parent | 79f578f5ed1932ad18127123b80901bde22ee983 (diff) | |
| download | website-2804c141aacf27d2e4ca381a39b4ffa2ea36c6c8.tar.gz | |
Route java.xsharp-lang.xyz to its retained deprecated catalog instead of the main homepage by adding a dedicated TLS nginx virtual host with the existing certificate, shared immutable frontend assets, repository security headers, read-only static routing, and explicit deployment documentation
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | ops/nginx/xsharp.conf | 47 |
2 files changed, 48 insertions, 0 deletions
@@ -15,6 +15,7 @@ This repository contains the public web surface for the Visual X# programming la verification/recovery mail, secure session cookies, PostgreSQL persistence, and digest-only CLI tokens. - `java.xsharp-lang.xyz` is retained as a deprecated, read-only historical Java catalog so existing links continue to resolve. It does not define the current compiler pipeline and does not accept new artifact publication. + Its dedicated nginx host serves the generated `/java/` page at the domain root while sharing immutable frontend assets. The deprecated catalog records the former `org.progmasoft.visual_xsharp.xmm.writer`, `org.progmasoft.visual_xsharp.xmm.reader`, and `org.progmasoft.java_utilities.ffi.c` package plans for historical reference; diff --git a/ops/nginx/xsharp.conf b/ops/nginx/xsharp.conf index f7cb3b7..40462cc 100644 --- a/ops/nginx/xsharp.conf +++ b/ops/nginx/xsharp.conf @@ -33,6 +33,53 @@ server { server { listen 443 ssl; listen [::]:443 ssl; + server_name java.xsharp-lang.xyz; + + root /srv/xsharp/website/current/frontend/java; + index index.html; + server_tokens off; + + ssl_certificate /etc/letsencrypt/live/xsharp-lang.xyz/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/xsharp-lang.xyz/privkey.pem; + include /etc/letsencrypt/options-ssl-nginx.conf; + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; + + include /etc/nginx/snippets/repository-security-headers.conf; + + location /_astro/ { + alias /srv/xsharp/website/current/frontend/_astro/; + include /etc/nginx/snippets/repository-security-headers.conf; + add_header Cache-Control "public, max-age=31536000, immutable"; + } + + location /fonts/ { + alias /srv/xsharp/website/current/frontend/fonts/; + include /etc/nginx/snippets/repository-security-headers.conf; + add_header Cache-Control "public, max-age=31536000, immutable"; + } + + location = /xsharp-logo.png { + alias /srv/xsharp/website/current/frontend/xsharp-logo.png; + } + + location = /xsharp-logo.webp { + alias /srv/xsharp/website/current/frontend/xsharp-logo.webp; + } + + location / { + include /etc/nginx/snippets/repository-security-headers.conf; + add_header Cache-Control "public, max-age=300"; + try_files $uri $uri/ =404; + } + + location ~ /\. { + deny all; + } +} + +server { + listen 443 ssl; + listen [::]:443 ssl; server_name viget.xsharp-lang.xyz; root /srv/xsharp/website/current/frontend/repo; |