mirror of
git://f0xx.org/android_cast
synced 2026-07-29 08:37:37 +03:00
snap
This commit is contained in:
35
orchestration/nginx/crashes-fe.conf
Normal file
35
orchestration/nginx/crashes-fe.conf
Normal file
@@ -0,0 +1,35 @@
|
||||
server {
|
||||
listen 8080;
|
||||
server_name _;
|
||||
|
||||
client_max_body_size 16m;
|
||||
index index.php;
|
||||
|
||||
location = / {
|
||||
return 302 /app/androidcast_project/crashes/;
|
||||
}
|
||||
|
||||
location /app/androidcast_project/crashes/ {
|
||||
alias /workspace/examples/crash_reporter/backend/public/;
|
||||
index index.php;
|
||||
try_files $uri $uri/ @crashes_front;
|
||||
}
|
||||
|
||||
location @crashes_front {
|
||||
rewrite ^ /app/androidcast_project/crashes/index.php?$query_string last;
|
||||
}
|
||||
|
||||
location ~ ^/app/androidcast_project/crashes/(.+\.php)$ {
|
||||
alias /workspace/examples/crash_reporter/backend/public/$1;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME /workspace/examples/crash_reporter/backend/public/$1;
|
||||
fastcgi_param SCRIPT_NAME /app/androidcast_project/crashes/$1;
|
||||
fastcgi_param DOCUMENT_ROOT /workspace/examples/crash_reporter/backend/public;
|
||||
fastcgi_pass crash-php:9000;
|
||||
fastcgi_read_timeout 120s;
|
||||
}
|
||||
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
33
orchestration/nginx/gitea-fe.conf
Normal file
33
orchestration/nginx/gitea-fe.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
server {
|
||||
listen 8080;
|
||||
server_name _;
|
||||
|
||||
client_max_body_size 64m;
|
||||
|
||||
location /app/androidcast_project/git/ {
|
||||
rewrite ^/app/androidcast_project/git/?(.*)$ /$1 break;
|
||||
proxy_pass http://gitea:3000;
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://gitea:3000;
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
29
orchestration/nginx/landing.conf
Normal file
29
orchestration/nginx/landing.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
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/ {
|
||||
alias /workspace/examples/app_hub/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /app/androidcast_project/index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user