Created
April 21, 2020 10:08
-
-
Save ahmetozer/90dd3a08f11e656aa9eed744a8cd32a4 to your computer and use it in GitHub Desktop.
Convert HTTP server to HTTPS server with NGINX Stream - SSL Termination
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stream { | |
server { | |
listen 443 ssl; | |
proxy_pass my.local.application:80; | |
ssl_certificate /etc/ssl/certs/server.crt; | |
ssl_certificate_key /etc/ssl/certs/server.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_session_cache shared:SSL:20m; | |
ssl_session_timeout 4h; | |
ssl_handshake_timeout 30s; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment