mirror of
git://f0xx.org/ac/ac-platform-edge
synced 2026-07-29 06:38:52 +03:00
Add ac-fe.conf and ac-fe.fragment for Gentoo FE proxy to cast cluster; upstream uses cast01 primary with cast02/03 backup; document PO install steps. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
# Paste into the listen 443 server {} for apps.f0xx.org (or lab acl0 vhost in ac-fe.conf).
|
|
# Requires upstream ac_be_backend in http {} — defined at top of ac-fe.conf.
|
|
#
|
|
# When enabling on prod: comment out the old blocks in /etc/nginx/apps.conf for
|
|
# /app/androidcast_project/crashes and /crashes/ (keep graphs/build/hub as-is until cutover).
|
|
|
|
# --- Issues / ticket console (SPEC: /issues/ is canonical) ---
|
|
location = /app/androidcast_project/issues {
|
|
return 301 $scheme://$host/app/androidcast_project/issues/;
|
|
}
|
|
location ^~ /app/androidcast_project/issues/ {
|
|
proxy_pass http://ac_be_backend;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
client_max_body_size 16m;
|
|
}
|
|
|
|
# --- Legacy /crashes/ → /issues/ (SPEC §7) ---
|
|
location = /app/androidcast_project/crashes {
|
|
return 301 $scheme://$host/app/androidcast_project/issues/;
|
|
}
|
|
location ^~ /app/androidcast_project/crashes/ {
|
|
rewrite ^/app/androidcast_project/crashes/?(.*)$ $scheme://$host/app/androidcast_project/issues/$1 permanent;
|
|
}
|