2026-05-18 19:49:31 +08:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
server_name _;
|
|
|
|
|
|
2026-05-19 00:13:09 +08:00
|
|
|
client_max_body_size 100m;
|
|
|
|
|
|
2026-05-18 19:49:31 +08:00
|
|
|
location /health {
|
|
|
|
|
return 200 "ok\n";
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-19 00:13:09 +08:00
|
|
|
# tenant-service runs on port 9001
|
|
|
|
|
location /api/ {
|
|
|
|
|
proxy_pass http://tenant-service:9001/api/;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /actuator/ {
|
|
|
|
|
proxy_pass http://tenant-service:9001/actuator/;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# file-service runs on port 8086
|
|
|
|
|
location /file/ {
|
|
|
|
|
proxy_pass http://file-service:8086/file/;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /ops {
|
|
|
|
|
proxy_pass http://ops-web:80;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-18 19:49:31 +08:00
|
|
|
location / {
|
|
|
|
|
proxy_pass http://tenant-web:80;
|
2026-05-19 00:13:09 +08:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2026-05-18 19:49:31 +08:00
|
|
|
}
|
|
|
|
|
}
|