1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 10:59:28 +03:00
Files
android_cast/orchestration/nginx/landing.conf
Anton Afanasyeu 4803caebce Shared platform footer template for hub and all PHP consoles.
Centralize copyright in examples/platform/footer.config.php, render via
footer.php in crashes/builder/login layouts, and serve hub through index.php.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 18:54:13 +02:00

64 lines
1.9 KiB
Plaintext

server {
listen 8080;
server_name _;
client_max_body_size 16m;
location = / {
return 302 /app/androidcast_project/;
}
location /app/androidcast_project/git/ {
return 302 http://localhost:8081/;
}
location /app/androidcast_project/crashes/ {
proxy_pass http://crashes-fe:8080;
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;
}
location /app/androidcast_project/graphs/ {
proxy_pass http://crashes-fe:8080;
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;
}
location /app/androidcast_project/build/ {
proxy_pass http://build-fe:8080;
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;
}
location /app/androidcast_project/v0/ota/ {
alias /workspace/orchestration/runtime/ota-artifacts/v0/;
add_header Cache-Control "public, max-age=60";
}
location = /app/androidcast_project/index.php {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /workspace/examples/app_hub/index.php;
fastcgi_param SCRIPT_NAME /app/androidcast_project/index.php;
fastcgi_pass crash-php:9000;
}
location = /app/androidcast_project/ {
rewrite ^ /app/androidcast_project/index.php last;
}
location /app/androidcast_project/ {
alias /workspace/examples/app_hub/;
index index.php index.html;
try_files $uri $uri/ =404;
}
}