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

deps: ac-scripts under deps/; cluster upstream in lab apps.conf seed

Move ac-scripts submodule to deps/ac-scripts. FE apps.conf seed proxies to
ac_be_backend (cast01–03) instead of artc0.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-06-24 17:45:04 +02:00
parent 07cbaceb7f
commit e4e3cd3462
3 changed files with 15 additions and 30 deletions

4
.gitmodules vendored
View File

@@ -0,0 +1,4 @@
[submodule "deps/ac-scripts"]
path = deps/ac-scripts
url = git://f0xx.org/ac/ac-scripts
branch = next

1
deps/ac-scripts vendored Submodule

Submodule deps/ac-scripts added at fb275ccada

View File

@@ -1,10 +1,8 @@
# apps.f0xx.org — Android Cast public vhost (FE Gentoo).
# Included from nginx.conf: include /etc/nginx/apps.conf;
# Symlink: /etc/nginx/apps.conf → ac-platform-edge/fe/apps.conf
# Requires: include /etc/nginx/ac-fe-upstream.conf; in http {}
#
# Upstream: BE nginx on artc0.intra.raptor.org:80 (hub PHP, crashes, graphs, build, OTA).
# Git browser: BE :3000 (Gitea). Do not proxy androidcast to BE :443 or :8089.
#
# Reload: nginx -t && rc-service nginx reload
# Upstream: cast0103 staging cluster. Legacy artc0 BE deprecated.
server {
listen 80;
@@ -22,9 +20,8 @@ server {
ssl_certificate /etc/letsencrypt/live/apps.f0xx.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/apps.f0xx.org/privkey.pem;
# --- OTA artifacts (BE static tree on listen 80) ---
location ^~ /v0/ota/ {
proxy_pass http://artc0.intra.raptor.org:80;
proxy_pass http://ac_be_backend;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -32,12 +29,11 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# --- APK builder (long-running Docker builds) ---
location = /app/androidcast_project/build {
return 301 $scheme://$host/app/androidcast_project/build/;
}
location ^~ /app/androidcast_project/build/ {
proxy_pass http://artc0.intra.raptor.org:80;
proxy_pass http://ac_be_backend;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -51,26 +47,13 @@ server {
client_max_body_size 512m;
}
# --- Crash / ticket console ---
location = /app/androidcast_project/crashes {
return 301 $scheme://$host/app/androidcast_project/crashes/;
}
location ^~ /app/androidcast_project/crashes/ {
proxy_pass http://artc0.intra.raptor.org:80;
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;
}
include /etc/nginx/ac-fe.fragment;
# --- Graphs dashboard ---
location = /app/androidcast_project/graphs {
return 301 $scheme://$host/app/androidcast_project/graphs/;
}
location ^~ /app/androidcast_project/graphs/ {
proxy_pass http://artc0.intra.raptor.org:80;
proxy_pass http://ac_be_backend;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -78,12 +61,11 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# --- Hub landing (PHP index) ---
location = /app/androidcast_project {
return 301 $scheme://$host/app/androidcast_project/;
}
location ^~ /app/androidcast_project/ {
proxy_pass http://artc0.intra.raptor.org:80;
proxy_pass http://ac_be_backend;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -91,12 +73,11 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# --- Gitea web UI ---
location = /app/androidcast_project/git {
return 301 $scheme://$host/app/androidcast_project/git/;
}
location ^~ /app/androidcast_project/git/ {
proxy_pass http://artc0.intra.raptor.org:3000/;
proxy_pass http://ac_be_backend;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -110,9 +91,8 @@ server {
client_max_body_size 512m;
}
# --- Default: anything else on this vhost → BE :80 ---
location / {
proxy_pass http://artc0.intra.raptor.org:80;
proxy_pass http://ac_be_backend;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;