Skip to content

Instantly share code, notes, and snippets.

@VeggieMeat
Last active December 29, 2015 11:39
Show Gist options
  • Save VeggieMeat/7665216 to your computer and use it in GitHub Desktop.
Save VeggieMeat/7665216 to your computer and use it in GitHub Desktop.
Nginx vhost config for Sensu Dashboard
upstream sensu_dashboard {
server 127.0.0.1:8080;
}
server {
listen *:80 ;
server_name sensu.example.com;
access_log /var/log/nginx/sensu.example.com.access.log;
location / {
try_files $uri @sensu_dashboard;
}
location @sensu_dashboard {
proxy_pass http://sensu_dashboard;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment