Created
March 10, 2015 12:52
-
-
Save dne/4d261fe4f9533a1f3701 to your computer and use it in GitHub Desktop.
Nginx config for SmokePing (reverse proxy to Starman)
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
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