Skip to content

Instantly share code, notes, and snippets.

@dne
Created March 10, 2015 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dne/4d261fe4f9533a1f3701 to your computer and use it in GitHub Desktop.
Save dne/4d261fe4f9533a1f3701 to your computer and use it in GitHub Desktop.
Nginx config for SmokePing (reverse proxy to Starman)
upstream smping_proxy {
server unix:/var/run/smokeping-psgi.sock;
}
server {
listen 80;
listen [::]:80;
server_name smokeping.example.net;
location / {
try_files $uri @smping_proxy;
}
location /smokeping {
alias /usr/share/smokeping/www;
}
location @smping_proxy {
include proxy_params;
proxy_pass http://smping_proxy;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment