Skip to content

Instantly share code, notes, and snippets.

@atrakic
Last active December 25, 2017 15:07
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 atrakic/457b5ca6390de613769e53062d46b1ad to your computer and use it in GitHub Desktop.
Save atrakic/457b5ca6390de613769e53062d46b1ad to your computer and use it in GitHub Desktop.
server {
# ...
# apt-get install -y darkstat
location /d/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:666;
rewrite /d/(.*) /$1 break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment