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 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
# 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/; | |
} | |
} |
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
Just added IPv6 support.