This commit is contained in:
Maurice
2025-10-03 16:28:04 +02:00
parent 45bbaa1041
commit 0a87de85d1
2 changed files with 7 additions and 5 deletions

View File

@@ -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.

View File

@@ -1,4 +1,8 @@
watch.goofjes.nl {
http://watch.goofjes.nl {
import https-redir
}
https://watch.goofjes.nl {
import https
import compression
import default-headers