Skip to content

Instantly share code, notes, and snippets.

@gvych
Created August 27, 2021 11:12
Show Gist options
  • Save gvych/b68095231c1d360dd37525b381df3729 to your computer and use it in GitHub Desktop.
Save gvych/b68095231c1d360dd37525b381df3729 to your computer and use it in GitHub Desktop.
Nginx transparent proxy http->https for traffic snooping (for debugging)
server {
listen 8080 default;
proxy_ssl_server_name on;
location / {
proxy_pass https://<external_host>;
proxy_set_header Accept-Encoding "disabled";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment