diff options
| author | Leitwolf11 | 2026-09-26 11:04:06 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-09-26 11:04:06 +0300 |
| commit | d1b0db46991e03b6a077f1f11b24dc0a96afacbc (patch) | |
| tree | ab886c12202f3acdc317b7117eee2d1e8bf9f5cf | |
| parent | 215a5a42fa4e21e75bbdfa45f8bccf4d98e781c7 (diff) | |
| download | website-d1b0db46991e03b6a077f1f11b24dc0a96afacbc.tar.gz | |
Deploy Visual X# Vue and Spring site while preserving legacy ViGet status isolation
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | ops/nginx/xsharp.conf | 4 | ||||
| -rw-r--r-- | ops/systemd/xsharp-site-api.service (renamed from ops/systemd/xsharp-web-api.service) | 2 |
3 files changed, 8 insertions, 8 deletions
@@ -54,11 +54,11 @@ cd backend gradle test bootJar ``` -The jar is built under `backend/build/libs/`. The server unit in `ops/systemd/xsharp-web-api.service` expects it at -`/srv/xsharp/website/current/backend/visual-xsharp-website-api-1.0.0.jar` and binds it only to loopback port 5080. -Before switching the live website service, confirm that any legacy status route still served by its old .NET process has -been transferred to its rightful owner. Install Java 25 on the server, test the new jar's site and health routes locally, -and change the service only as an explicit deployment action. Committing these files does not switch the server. +The jar is built under `backend/build/libs/`. The server unit in `ops/systemd/xsharp-site-api.service` expects it at +`/srv/xsharp/website/current/backend/visual-xsharp-website-api-1.0.0.jar` and binds it only to loopback port 5086. +The old .NET process remains on loopback port 5080 solely because Progmaweb's temporary ViGet status route still +depends on it; the language site does not proxy to that process. Migrate the ViGet route within Progmaweb before +retiring the old process. The server needs a Java 25 runtime. Committing these files alone does not deploy them. ## Links and language accuracy diff --git a/ops/nginx/xsharp.conf b/ops/nginx/xsharp.conf index dd6d3c7..fed879c 100644 --- a/ops/nginx/xsharp.conf +++ b/ops/nginx/xsharp.conf @@ -4,7 +4,7 @@ server { listen 80 default_server; listen [::]:80 default_server; - server_name _; + server_name xsharp-unmatched.invalid; server_tokens off; return 444; @@ -68,7 +68,7 @@ server { # Only the language site's own public metadata crosses into Spring. # A catch-all /api proxy would accidentally expose legacy registry routes. location = /api/v1/site { - proxy_pass http://127.0.0.1:5080/api/v1/site; + proxy_pass http://127.0.0.1:5086/api/v1/site; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; diff --git a/ops/systemd/xsharp-web-api.service b/ops/systemd/xsharp-site-api.service index 599c530..9e60b84 100644 --- a/ops/systemd/xsharp-web-api.service +++ b/ops/systemd/xsharp-site-api.service @@ -12,7 +12,7 @@ User=xsharp_web Group=xsharp_web WorkingDirectory=/srv/xsharp/website/current/backend ExecStart=/usr/bin/java -XX:MaxRAMPercentage=35 -jar /srv/xsharp/website/current/backend/visual-xsharp-website-api-1.0.0.jar -Environment=PORT=5080 +Environment=PORT=5086 Restart=on-failure RestartSec=3s TimeoutStopSec=15s |