diff options
| author | Patrick Spek <p.spek@tyil.nl> | 2024-07-17 23:39:24 +0200 |
|---|---|---|
| committer | Patrick Spek <p.spek@tyil.nl> | 2024-07-17 23:39:24 +0200 |
| commit | d217a7d1bd6c461a7a93d7c3c36d86383c161192 (patch) | |
| tree | d115e91fbbf3c287871755fdb47c775526b06b97 /nginx.conf | |
| download | proxy-http-d217a7d1bd6c461a7a93d7c3c36d86383c161192.tar.gz proxy-http-d217a7d1bd6c461a7a93d7c3c36d86383c161192.tar.bz2 | |
Initial commit
Diffstat (limited to 'nginx.conf')
| -rw-r--r-- | nginx.conf | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..f1281bf --- /dev/null +++ b/nginx.conf @@ -0,0 +1,27 @@ +worker_processes auto; + +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + + server { + listen %%PROXY_LISTEN_PORT%% default_server; + listen [::]:%%PROXY_LISTEN_PORT%% default_server; + + server_name "%%PROXY_HOSTNAME%%"; + + set $upstream_url "%%PROXY_DESTINATION_PROTOCOL%%://%%PROXY_DESTINATION_HOST%%:%%PROXY_DESTINATION_PORT%%"; + + location / { + 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_pass $upstream_url; + } + } +} |
