Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lelux.fi
Wiki
Commits
f5adc323
Verified
Commit
f5adc323
authored
May 14, 2019
by
Elias Ojala
Browse files
Haproxy configuration
parent
da33c41b
Changes
1
Hide whitespace changes
Inline
Side-by-side
haproxy.md
View file @
f5adc323
...
...
@@ -68,6 +68,18 @@ Use this utility to convert certs outputted by Certbot to ones compatible by HAP
*
[
LE-Combiner
](
https://github.com/theel0ja/haproxy-scripts/blob/master/le-combiner/
)
```
bash
sudo
su -
mkdir
/etc/haproxy/certs
chmod
700 /etc/haproxy/certs
git clone https://github.com/theel0ja/haproxy-scripts.git
ln
-s
~/haproxy-scripts/le-combiner/le-combiner.sh ~/le-combiner.sh
./le-combiner.sh
```
To generate certificates, see
[
this guide
](
certbot.md#http-used-by-haproxy-examples
)
.
### Cronjob (root)
...
...
@@ -88,6 +100,10 @@ To generate certificates, see [this guide](certbot.md#http-used-by-haproxy-examp
```
haproxy
frontend https-in
bind *:443 ssl crt /etc/haproxy/certs/ alpn h2,http/1.1
reqadd X-Forwarded-Proto:\ https
http-response set-header Strict-Transport-Security max-age=15768000
...
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment