Skip to content

Instantly share code, notes, and snippets.

@adenosinew
Created September 18, 2019 23:20
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 adenosinew/900d08256fc114b73a0dfda3d647c087 to your computer and use it in GitHub Desktop.
Save adenosinew/900d08256fc114b73a0dfda3d647c087 to your computer and use it in GitHub Desktop.
[Bypass nginx security]
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://6.6.6.6:80;
proxy_set_header Authorization "Basic a2luZzppc25ha2Vk";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment