Skip to content

Instantly share code, notes, and snippets.

@franzramadhan
Created February 8, 2018 22:38
Show Gist options
  • Save franzramadhan/27daf78c50fc1847516bf5876058c16d to your computer and use it in GitHub Desktop.
Save franzramadhan/27daf78c50fc1847516bf5876058c16d to your computer and use it in GitHub Desktop.
Create SSL Key
openssl req -newkey rsa:2048 -nodes -keyout vm1.key -x509 -days 365 -out vm1.crt
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