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
3e19e9ad
Verified
Commit
3e19e9ad
authored
Jul 14, 2019
by
Elias Ojala
Browse files
IPv6
parent
105f82ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
haproxy.md
View file @
3e19e9ad
...
...
@@ -49,7 +49,7 @@ defaults
```
# HTTP (port 80)
frontend http-in
bind
*
:80
bind
::
:80
reqadd X-Forwarded-Proto:\ http
use_backend letsencrypt if { path_beg -i /.well-known/acme-challenge }
...
...
@@ -109,7 +109,7 @@ git clone https://git.lelux.fi/theel0ja/useragent-blocklist /etc/haproxy/userage
```
haproxy
# HTTPS (port 443)
frontend https-in
bind
*
:443 ssl crt /etc/haproxy/certs/ alpn h2,http/1.1
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