Update nginx templates

This commit is contained in:
Adrian Heine 2025-12-09 21:59:38 +01:00
parent 4cbcb4ddd5
commit b11742ffad
2 changed files with 8 additions and 4 deletions

View file

@ -27,8 +27,10 @@ mod test {
"/challenges_snippet.conf" "/challenges_snippet.conf"
), ),
"server { "server {
listen 443 ssl http2; listen 443 ssl;
listen [::]:443 ssl http2; listen [::]:443 ssl;
http2 on;
server_name testdomain; server_name testdomain;
include \"/challenges_snippet.conf\"; include \"/challenges_snippet.conf\";

View file

@ -24,8 +24,10 @@ pub fn server_config<D: Display, C: AsRef<Path>, K: AsRef<Path>, T: Display, S:
) -> String { ) -> String {
format!( format!(
"server {{ "server {{
listen 443 ssl http2; listen 443 ssl;
listen [::]:443 ssl http2; listen [::]:443 ssl;
http2 on;
server_name {}; server_name {};
include \"{}\"; include \"{}\";