diff --git a/nginx.conf b/nginx.conf index 23566b65a..db968abe3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 900792379..99e55c1e4 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -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']