feat: Update Incoming Email Monitor webhook endpoint and improve Nginx configuration

This commit is contained in:
Nawaz Dhandala
2026-01-13 22:10:34 +00:00
parent 4b738ef85a
commit 7b99b0214d
2 changed files with 20 additions and 4 deletions

View File

@@ -867,12 +867,12 @@ ${PROVISION_SSL_CERTIFICATE_KEY_DIRECTIVE}
location /heartbeat {
# This is for nginx not to crash when service is not available.
# This is for nginx not to crash when service is not available.
resolver 127.0.0.1 valid=30s;
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_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
@@ -883,6 +883,22 @@ ${PROVISION_SSL_CERTIFICATE_KEY_DIRECTIVE}
client_max_body_size 50M;
}
location /incoming-email {
# Incoming Email Monitor webhook endpoint
resolver 127.0.0.1 valid=30s;
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_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://probe-ingest/incoming-email;
client_max_body_size 50M;
}
location /workflow {
# This is for nginx not to crash when service is not available.