mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 03:17:55 +03:00
cluster: nginx vhost for s.f0xx.org on cast01; drop artc0 comment
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
Anton Afanasyeu
parent
70b886aecb
commit
2f544de974
@@ -1,5 +1,5 @@
|
|||||||
# Full androidcast vhost for Alpine BE — listen 80 only.
|
# 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.
|
# Port 8089 is a different service (e.g. Janus) — not this vhost.
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|||||||
25
sim/cluster0/nginx/url-shortener-port80.conf
Normal file
25
sim/cluster0/nginx/url-shortener-port80.conf
Normal file
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user