Skip to content

Instantly share code, notes, and snippets.

@kevholditch
Last active December 6, 2017 09:40
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 kevholditch/3530cd64ba03794088a919417491cbc7 to your computer and use it in GitHub Desktop.
Save kevholditch/3530cd64ba03794088a919417491cbc7 to your computer and use it in GitHub Desktop.
server {
server_name notification_proxy;
listen 8117;
location / {
resolver $DNS_ADDR ipv6=off;
set_by_lua_block $proxy_addr {
return ngx.unescape_uri(ngx.var.arg_address)
}
proxy_pass $proxy_addr;
proxy_ssl_server_name on;
proxy_ssl_certificate /etc/nginx/certs/client.cert.pem;
proxy_ssl_certificate_key /etc/nginx/certs/client.key.pem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment