Hi
I created a proxy port app and installed nginx server for reverse proxy pointing to my django app running on local machine.
The setup works fine, and I can browse the app without any issues. The issue started when I was testing webhooks from a service. The webhooks work fine when pushed to pipedream endpoint, but with my reverse proxy domain, it doesn't work. I cant seem to diagnose it, logs dont show any request either. Any advice will be appreciated. Thanks
Here's my nginx.conf:
worker_processes 1;
error_log /home/<user>/logs/apps/<app_name>/nginx.error.log;
events {
worker_connections 1024;
}
http {
access_log /home/<user>/logs/apps/<app_name>/access_app.log combined;
error_log /home/<user>/logs/apps/<app_name>/error_app.log crit;
include mime.types;
default_type application/octet-stream;
underscores_in_headers on;
sendfile on;
keepalive_timeout 65;
server {
listen <proxy_port>;
server_name <domain>;
access_log /home/<user>/logs/apps/<app_name>/nginx.access.log;
location / {
proxy_pass http://<dyndns.domain>:<external_port>;
#proxy_pass_header Server;
proxy_pass_request_headers on;
proxy_http_version 1.1;
proxy_cache_bypass $http_upgrade
#proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
#proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
# required by webhook - header - x-signature
proxy_pass_header X-Signature;
#proxy_pass_header user-agent;
proxy_redirect off;
}
}
}