Compare commits
2 commits
ceca1b3798
...
08893439e7
Author | SHA1 | Date | |
---|---|---|---|
Rouven Seifert | 08893439e7 | ||
Rouven Seifert | 0d4283f109 |
|
@ -7,10 +7,14 @@
|
|||
({ name, ... }: {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
# enable http3 for all hosts
|
||||
quic = true;
|
||||
http3 = true;
|
||||
# split up nginx access logs per vhost
|
||||
extraConfig = ''
|
||||
access_log /var/log/nginx/${name}_access.log;
|
||||
error_log /var/log/nginx/${name}_error.log;
|
||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||
'';
|
||||
})
|
||||
);
|
||||
|
@ -22,6 +26,7 @@
|
|||
networking.firewall.allowedUDPPorts = [ 443 ];
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
package = pkgs.nginxQuic;
|
||||
additionalModules = [ pkgs.nginxModules.pam ];
|
||||
recommendedProxySettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
|
|
|
@ -43,6 +43,7 @@ in
|
|||
root = "/srv/web/fsrewsp";
|
||||
extraConfig = ''
|
||||
index index.php index.html;
|
||||
fastcgi_param HTTP_HOST $host;
|
||||
'';
|
||||
|
||||
locations = {
|
||||
|
|
|
@ -40,6 +40,7 @@ in
|
|||
root = "/srv/web/nightline";
|
||||
extraConfig = ''
|
||||
index index.php index.html;
|
||||
fastcgi_param HTTP_HOST $host;
|
||||
'';
|
||||
|
||||
locations = {
|
||||
|
|
Loading…
Reference in a new issue