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

summaryrefslogtreecommitdiffhomepage
path: root/ops
diff options
context:
space:
mode:
authorLeitwolf112026-08-30 17:22:39 +0300
committerLeitwolf112026-08-30 17:22:39 +0300
commit6420aa30d09cb0815bdf7c140ebeca6218053870 (patch)
treed2db8c3737bae8c1cc4e195669f4352a49bdd7f1 /ops
parentf520a23ef0066c3d1021393f1e41a49af311e109 (diff)
downloadwebsite-6420aa30d09cb0815bdf7c140ebeca6218053870.tar.gz
Separate ViGet catalogs from Progmasoft account ownership. Move login, registration, recovery, and dashboard navigation to account.progmasoft.com, document the canonical account.progmasoft.com/<Account>/dashboard route, and define each ViGet Publisher as that exact Progmasoft Account identity. Redirect legacy ViGet account routes to the account service and expose only the exact registry status endpoint while closing the retired standalone authentication and token API surface.
Diffstat (limited to 'ops')
-rw-r--r--ops/nginx/xsharp.conf40
1 files changed, 39 insertions, 1 deletions
diff --git a/ops/nginx/xsharp.conf b/ops/nginx/xsharp.conf
index 7881759..5c57ff6 100644
--- a/ops/nginx/xsharp.conf
+++ b/ops/nginx/xsharp.conf
@@ -88,7 +88,39 @@ server {
include /etc/nginx/snippets/repository-security-headers.conf;
- location /api/ {
+ location = /login {
+ return 308 https://account.progmasoft.com/login$is_args$args;
+ }
+
+ location = /login/ {
+ return 308 https://account.progmasoft.com/login$is_args$args;
+ }
+
+ location = /register {
+ return 308 https://account.progmasoft.com/register$is_args$args;
+ }
+
+ location = /register/ {
+ return 308 https://account.progmasoft.com/register$is_args$args;
+ }
+
+ location = /recover {
+ return 308 https://account.progmasoft.com/recover$is_args$args;
+ }
+
+ location = /recover/ {
+ return 308 https://account.progmasoft.com/recover$is_args$args;
+ }
+
+ location = /dashboard {
+ return 308 https://account.progmasoft.com/$is_args$args;
+ }
+
+ location = /dashboard/ {
+ return 308 https://account.progmasoft.com/$is_args$args;
+ }
+
+ location = /api/v1/status {
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:5080;
proxy_set_header Host $host;
@@ -98,6 +130,12 @@ server {
proxy_set_header X-Real-IP $remote_addr;
}
+ # Account registration and registry-token ownership use the canonical
+ # Progmasoft Account service. ViGet does not expose its retired auth API.
+ location ^~ /api/ {
+ return 404;
+ }
+
location /_astro/ {
alias /srv/xsharp/website/current/frontend/_astro/;
include /etc/nginx/snippets/repository-security-headers.conf;