Fix
This commit is contained in:
@@ -18,15 +18,13 @@
|
||||
|
||||
# Block with default HTTP config that redirects to HTTPS
|
||||
(https-redir) {
|
||||
bind *:80 # Listen on port 80 (HTTP)
|
||||
protocols h1 h2 # Enable HTTP/1 and HTTP/2
|
||||
bind 0.0.0.0:80 # Listen on port 80 (HTTP)
|
||||
redir https://{host}{uri} 308
|
||||
}
|
||||
|
||||
# Block with default HTTPS config that accepts requests on port 443 (HTTP/1, HTTP/2, and HTTP/3)
|
||||
(https) {
|
||||
bind *:443 # Listen on port 443 (HTTPS)
|
||||
protocols h1 h2 h3 # Enable HTTP/1, HTTP/2, and HTTP/3 (QUIC)
|
||||
bind 0.0.0.0:443 # Listen on port 443 (HTTPS)
|
||||
}
|
||||
|
||||
# Block with compression configuration.
|
||||
|
||||
Reference in New Issue
Block a user