Created
December 7, 2016 14:26
-
-
Save jandudulski/7fc2a8f2c6d8823532c833816269a034 to your computer and use it in GitHub Desktop.
nginx event store reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name es.example.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
# ssl config... | |
server_name es.example.com; | |
location / { | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-Host $http_host; | |
proxy_set_header X-Forwarded-Proto https; | |
proxy_set_header X-Forwarded-Port 443; | |
proxy_pass http://127.0.0.1:2113; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment