Skip to content

Instantly share code, notes, and snippets.

@rdoursenaud
Last active November 14, 2015 09:32
Show Gist options
  • Save rdoursenaud/9641849 to your computer and use it in GitHub Desktop.
Save rdoursenaud/9641849 to your computer and use it in GitHub Desktop.
Shinken nginx reverse proxy configuration
# 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/;
}
}
@eliasp
Copy link

eliasp commented Mar 19, 2014

@rdoursenaud This will make your life/TODO-lists easier… :) Sorry, doesn't work in gists… :(

@rdoursenaud
Copy link
Author

@eliasp, it's a shame, would have been great. Thanks for tip though :)

@rdoursenaud
Copy link
Author

Just added IPv6 support.

@mohierf
Copy link

mohierf commented Nov 14, 2015

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