Skip to content

Instantly share code, notes, and snippets.

@roblayton
Last active August 29, 2015 14:24
Show Gist options
  • Save roblayton/1af7a4fb1d8ec8f41d04 to your computer and use it in GitHub Desktop.
Save roblayton/1af7a4fb1d8ec8f41d04 to your computer and use it in GitHub Desktop.
Example Shinken /etc/shinken/modules/webui.cfg file
## Module: webui
## Loaded by: Broker
# The Shinken web interface and integrated web server.
define module {
module_name webui
module_type webui
host 0.0.0.0 ; All interfaces = 0.0.0.0
port 7767
auth_secret CHANGE_ME ; CHANGE THIS or someone could forge cookies
allow_html_output 1 ; Allow or not HTML chars in plugins output.
; WARNING: Allowing can be a security issue.
max_output_length 1024 ; Maximum output length for plugin output in webui
manage_acl 1 ; Use contacts ACL. 0 allow actions for all.
play_sound 0 ; Play sound on new non-acknowledged problems.
login_text Welcome on Shinken WebUI ; Text in the login form.
## Modules for WebUI
# - auth-htpasswd = Use an htpasswd file for auth backend.
# - auth-active-directory = Use AD for auth backend (and retrieve photos).
# - auth-cfg-password = Use the password setted in Shinken contact for auth.
# - ui-pnp = Use PNP graphs in the UI.
# - ui-graphite = Use graphs from Graphite time series database.
# - mongodb = Save user preferences to a Mongodb database
# - SQLitedb = Save user preferences to a SQLite database
modules auth-cfg-password,SQLitedb,ui-pnp
## Advanced Options
# Don't play with them on your production server ;)
#http_backend auto ; Choice is: auto, wsgiref or cherrypy if available
#remote_user_enable 1 ; If WebUI is behind a web server which
; has already authentified user, enable.
#remote_user_enable 2 ; Look for remote user in the WSGI environment
; instead of the HTTP header. This allows
; for fastcgi (flup) and scgi (flupscgi)
; integration, eg. with the apache modules.
#remote_user_variable X_Remote_User ; Set to the HTTP header containing
; the authentificated user s name, which
; must be a Shinken contact.
# If you got external plugins (pages) to load on webui
#additional_plugins_dir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment