mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat: expand docker-compose to 8 services with monitoring stack per architecture spec
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
upstream backend_api {
|
||||
server backend:8080;
|
||||
}
|
||||
|
||||
upstream webhook_api {
|
||||
server webhook:8081;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend:80;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://backend_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 /webhook/ {
|
||||
proxy_pass http://webhook_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/health {
|
||||
proxy_pass http://backend_api;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user