Skip to content

Instantly share code, notes, and snippets.

@ahmetozer
Created October 5, 2020 21:48
Show Gist options
  • Save ahmetozer/9f191d336f995530123d0d195aa5d0fe to your computer and use it in GitHub Desktop.
Save ahmetozer/9f191d336f995530123d0d195aa5d0fe to your computer and use it in GitHub Desktop.
Nginx https termination with custom domain on ip
http {
server {
listen 80;
listen [::]:80
server_name example.com;
location / {
proxy_pass https://127.0.0.1;
proxy_ssl_server_name on;
proxy_ssl_name example.local;
proxy_set_header Host example.local;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment