mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
added configuration for ingestor, probe1 & probe2
This commit is contained in:
parent
a6fe551705
commit
5e00142781
@ -23,6 +23,15 @@ upstream home {
|
||||
upstream docs {
|
||||
server api-docs:1445;
|
||||
}
|
||||
upstream ingestor {
|
||||
server data-ingestor:3200;
|
||||
}
|
||||
upstream probe1 {
|
||||
server probe1:3024;
|
||||
}
|
||||
upstream probe2 {
|
||||
server probe2:3025;
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
@ -111,4 +120,28 @@ server {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://docs/;
|
||||
}
|
||||
location /ingestor {
|
||||
rewrite ^/ingestor/(.*) /$1 break;
|
||||
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_pass http://ingestor/;
|
||||
}
|
||||
location /probe1 {
|
||||
rewrite ^/probe1/(.*) /$1 break;
|
||||
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_pass http://probe1/;
|
||||
}
|
||||
location /probe2 {
|
||||
rewrite ^/probe2/(.*) /$1 break;
|
||||
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_pass http://probe2/;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user