1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 05:00:35 +03:00

fix(cluster0): Gitea cluster proxy, 2FA seed, hub downloads nginx

Bind Gitea on all interfaces for cast02/03 proxy, fix stale 2FA lab-seed
approve flow, add /v0/downloads/ and GITEA_UPSTREAM_HOST, and guard nginx
configure against empty templates.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-10 15:36:49 +02:00
parent 970de79a90
commit a14413e886
6 changed files with 78 additions and 16 deletions

View File

@@ -38,6 +38,13 @@ server {
add_header Cache-Control "public, max-age=60";
}
# Hub download artifacts (Session Studio jar, etc.) — populated by deploy-hub-downloads.sh
location ^~ /v0/downloads/ {
alias /var/www/localhost/htdocs/apps/app/androidcast_project/downloads/;
add_header Cache-Control "public, max-age=300";
default_type application/octet-stream;
}
# Favicon — served from hub root (shared by all sub-apps via explicit <link> tags)
location = /favicon.ico {
alias /var/www/localhost/htdocs/apps/app/androidcast_project/favicon.ico;
@@ -254,7 +261,8 @@ server {
return 301 $public_scheme://$http_host/app/androidcast_project/git/;
}
location ^~ /app/androidcast_project/git/ {
proxy_pass http://127.0.0.1:3000/;
# Gitea runs on cast01 only — do not proxy to 127.0.0.1 on cast02/cast03.
proxy_pass http://10.7.16.236:3000/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;