Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/ops
diff options
context:
space:
mode:
authorLeitwolf112026-08-14 00:00:25 +0300
committerLeitwolf112026-08-14 00:00:25 +0300
commit2804c141aacf27d2e4ca381a39b4ffa2ea36c6c8 (patch)
treebfb6d2ba50ca881583266e3647959922bf4b1250 /ops
parent79f578f5ed1932ad18127123b80901bde22ee983 (diff)
downloadwebsite-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
Diffstat (limited to 'ops')
-rw-r--r--ops/nginx/xsharp.conf47
1 files changed, 47 insertions, 0 deletions
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;