Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,26 @@ http {
return 302 $scheme://$http_host/transit/;
}

location ~ ^/interview/ {
resolver 127.0.0.11 valid=15s;

proxy_set_header Host $host;

# WebSocket support for collaborative editing
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";

set $upstream http://goderpad-nginx.sce;
proxy_pass $upstream;

rewrite ^/interview(.*)$ $1 break;
}

location ~ ^/interview$ {
return 302 $scheme://$http_host/interview/;
}

location ~ ^/status/ {
resolver 127.0.0.11 valid=15s;

Expand Down
3 changes: 3 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ scrape_configs:
- job_name: 'keep-ssh-tunnel-open'
static_configs:
- targets: ['keep-ssh-tunnel-open:8000']
- job_name: 'goderpad'
static_configs:
- targets: ['goderpad-backend:7778']
Loading