From 2f544de9747962593b16f67a99e1fe866c1a25cb Mon Sep 17 00:00:00 2001 From: Anton Afanasyev Date: Wed, 24 Jun 2026 17:49:36 +0200 Subject: [PATCH] cluster: nginx vhost for s.f0xx.org on cast01; drop artc0 comment Co-authored-by: Cursor --- sim/cluster0/nginx/apps-port80.conf | 2 +- sim/cluster0/nginx/url-shortener-port80.conf | 25 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 sim/cluster0/nginx/url-shortener-port80.conf diff --git a/sim/cluster0/nginx/apps-port80.conf b/sim/cluster0/nginx/apps-port80.conf index 64e9585..2748c7f 100644 --- a/sim/cluster0/nginx/apps-port80.conf +++ b/sim/cluster0/nginx/apps-port80.conf @@ -1,5 +1,5 @@ # Full androidcast vhost for Alpine BE — listen 80 only. -# FE (apps.f0xx.org) proxies here: proxy_pass http://artc0.intra.raptor.org:80; +# FE (apps.f0xx.org / s.f0xx.org) proxies here: cast01–03 cluster :80 # Port 8089 is a different service (e.g. Janus) — not this vhost. server { diff --git a/sim/cluster0/nginx/url-shortener-port80.conf b/sim/cluster0/nginx/url-shortener-port80.conf new file mode 100644 index 0000000..8fa582e --- /dev/null +++ b/sim/cluster0/nginx/url-shortener-port80.conf @@ -0,0 +1,25 @@ +# BE cluster — url-shortener vhost (Host: s.f0xx.org from FE) +# Install: include from /etc/nginx/http.d/androidcast.conf or http.d/url-shortener.conf +# Docroot: URL_SHORTENER_ROOT/public (default /var/www/url-shortener/public) + +server { + listen 80; + server_name s.f0xx.org; + + root /var/www/url-shortener/public; + index index.php; + + location ^~ /api/ { + try_files $uri /index.php?$query_string; + } + + location ~ "^/[a-f0-9]{6,16}$" { + try_files $uri /index.php?$query_string; + } + + location ~ \.php$ { + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_pass 127.0.0.1:9000; + } +}