Created
February 8, 2018 22:38
-
-
Save franzramadhan/27daf78c50fc1847516bf5876058c16d to your computer and use it in GitHub Desktop.
Create SSL Key
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
openssl req -newkey rsa:2048 -nodes -keyout vm1.key -x509 -days 365 -out vm1.crt |
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
frontend https-in | |
bind *:80 | |
bind *:443 ssl crt /etc/haproxy/ssl/server.pem | |
reqadd X-Forwarded-Proto:\ https``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment