Files
jambonz-infrastructure/packer/jambonz-web-server-and-monitoring-server/aws/files/nginx.default
Dave Horton ed86fc3693 add jambonz medium AWS deployment: sbc(sip+rtp), fs, web+monitoring (#61)
* add jambonz medium AWS deployment: sbc(sip+rtp), fs, web+monitoring

* fix terraform proxmox: correct calculation of private IP

* fixs for jambonz-medium

* spread sbc and fs across availability zones
2023-08-02 13:47:02 -04:00

41 lines
909 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://localhost:3010;
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://localhost: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;
}
}