deploy: add single-host cloud profile

This commit is contained in:
Codex Local
2026-08-26 09:00:07 +08:00
parent 43239d38f9
commit 7b32b479f5
7 changed files with 290 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
server {
listen 80;
server_name _;
server_tokens off;
client_max_body_size 256m;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location /api/ {
proxy_pass http://api:8080;
proxy_buffering off;
proxy_read_timeout 3600s;
}
location /device/ {
proxy_pass http://api:8080;
proxy_buffering off;
}
location /callbacks/ {
proxy_pass http://callbacks:8081;
proxy_buffering off;
}
location /realms/ {
proxy_pass http://keycloak:8080;
}
location /resources/ {
proxy_pass http://keycloak:8080;
}
location /private-exports/ {
proxy_pass http://minio:9000;
proxy_request_buffering off;
proxy_buffering off;
}
location / {
proxy_pass http://web:8080;
}
}