l 2 websites: enable ipv6 on all sites
This commit is contained in:
parent
954477b867
commit
920436365a
|
@ -110,7 +110,10 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableSSL = true;
|
enableSSL = true;
|
||||||
extraConfig = "listen 80;";
|
extraConfig = ''
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
'';
|
||||||
sslCertificate = "/var/lib/acme/lassul.us/fullchain.pem";
|
sslCertificate = "/var/lib/acme/lassul.us/fullchain.pem";
|
||||||
sslCertificateKey = "/var/lib/acme/lassul.us/key.pem";
|
sslCertificateKey = "/var/lib/acme/lassul.us/key.pem";
|
||||||
};
|
};
|
||||||
|
@ -123,7 +126,10 @@ in {
|
||||||
root /var/lib/acme/acme-challenges;
|
root /var/lib/acme/acme-challenges;
|
||||||
'';
|
'';
|
||||||
enableSSL = true;
|
enableSSL = true;
|
||||||
extraConfig = "listen 80;";
|
extraConfig = ''
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
'';
|
||||||
sslCertificate = "/var/lib/acme/cgit.lassul.us/fullchain.pem";
|
sslCertificate = "/var/lib/acme/cgit.lassul.us/fullchain.pem";
|
||||||
sslCertificateKey = "/var/lib/acme/cgit.lassul.us/key.pem";
|
sslCertificateKey = "/var/lib/acme/cgit.lassul.us/key.pem";
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,10 @@ rec {
|
||||||
services.nginx.virtualHosts.${domain} = {
|
services.nginx.virtualHosts.${domain} = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
enableSSL = true;
|
enableSSL = true;
|
||||||
extraConfig = "listen 80;";
|
extraConfig = ''
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
'';
|
||||||
serverAliases = domains;
|
serverAliases = domains;
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
root /srv/http/${domain};
|
root /srv/http/${domain};
|
||||||
|
@ -35,6 +38,7 @@ rec {
|
||||||
serverAliases = domains;
|
serverAliases = domains;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
# Add headers to serve security related headers
|
# Add headers to serve security related headers
|
||||||
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
|
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
|
||||||
|
@ -148,6 +152,8 @@ rec {
|
||||||
serverAliases = domains;
|
serverAliases = domains;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
root /srv/http/${domain}/;
|
root /srv/http/${domain}/;
|
||||||
index index.php;
|
index index.php;
|
||||||
access_log /tmp/nginx_acc.log;
|
access_log /tmp/nginx_acc.log;
|
||||||
|
|
Loading…
Reference in a new issue