mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-10-29 23:04:34 +00:00
41 lines
931 B
Plaintext
41 lines
931 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
location /api/ {
|
|
rewrite ^/api/(.*)$ /$1 break;
|
|
proxy_pass http://localhost:3000;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://localhost:3001;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name grafana.your_domain.com;
|
|
location / {
|
|
proxy_pass http://MONITORING_SERVER_IP:3000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name homer.your_domain.com;
|
|
location / {
|
|
proxy_pass http://MONITORING_SERVER_IP:9080;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
} |