Last active
November 14, 2015 09:32
-
-
Save rdoursenaud/9641849 to your computer and use it in GitHub Desktop.
Shinken nginx reverse proxy 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
# Reverse proxy for Shinken 2.0.x on Debian Wheezy | |
# Place this file under /etc/nginx/sites-available | |
# Update your server_name | |
# Don't forget to enable the config and reload nginx | |
# Enjoy ^^ | |
server { | |
# IPv4 support | |
listen 80; | |
# IPv6 support | |
listen [::]:80; | |
server_name name.domainname.tld; | |
# Proxy | |
location / { | |
proxy_pass http://localhost:7767; | |
include proxy_params; | |
} | |
# Serve static content directly | |
location /static/(.*\/)? { | |
try_files htdocs/$uri plugins/$1/htdocs/$uri @webui; | |
} | |
location @webui { | |
root /var/lib/shinken/modules/webui/; | |
} | |
} |
TODO: SPDY version
You can hide the shinken WebUI behind the proxy by setting the host parameter in the WebUI configuration to 127.0.0.1 ;)
@rdoursenaud This will make your life/TODO-lists easier… :) Sorry, doesn't work in gists… :(
@eliasp, it's a shame, would have been great. Thanks for tip though :)
Just added IPv6 support.
Please see this post I just added to the Shinken WebUI Wiki: https://github.com/shinken-monitoring/mod-webui/wiki/Frontend-Web-server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO: SSL version