Created
March 27, 2018 08:03
-
-
Save Elycin/c70dffc4ab22e4c2e11ef3468eedbc81 to your computer and use it in GitHub Desktop.
IPMI NGINX Reverse Proxy (Removed HTTPS configuration)
This file contains 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
upstream ipmi_backend { | |
# the ipmi server | |
server 192.168.1.74:443; | |
keepalive 64; | |
} | |
server { | |
# nginx listens to this | |
listen 80; | |
# the virtual host name of this | |
server_name $YOUR_SUBDOMAIN_HERE; | |
location / { | |
add_header X-Frame-Options SAMEORIGIN; | |
add_header X-Content-Type-Options ""; | |
proxy_set_header X-Content-Type-Options ""; | |
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_pass https://ipmi_backend; | |
proxy_http_version 1.1; | |
proxy_pass_request_headers on; | |
proxy_set_header Connection "keep-alive"; | |
proxy_store off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Had to strip the SSL, didn't want to reveal my domain or snippets, sorry! by all means you should never expose it either.