Use http3 with caddy

This commit is contained in:
TEC 2022-09-05 02:47:57 +08:00
parent 69b5b2914f
commit c69eacefbc
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 8 additions and 0 deletions

View File

@ -4,12 +4,20 @@ with lib;
{
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
networking.firewall.allowedUDPPortRanges = [ { from=443; to=443; } ];
# If I end up wanting to add plugins, see:
# https://mdleom.com/blog/2021/12/27/caddy-plugins-nixos/
services.caddy = mkMerge [
{
enable = true;
globalConfig = ''
servers {
protocol {
experimental_http3
}
}
'';
virtualHosts."tecosaur.net".extraConfig = ''
respond "__ __ _
\ \ / /__| | ___ ___ _ __ ___ ___