mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-05-28 17:21:12 +02:00
treewide/nginx: enable kTLS for a bunch more virtualHosts
This commit is contained in:
@@ -119,6 +119,7 @@ in {
|
|||||||
services.nginx.virtualHosts."pvv.ntnu.no" = {
|
services.nginx.virtualHosts."pvv.ntnu.no" = {
|
||||||
globalRedirect = cfg.domainName;
|
globalRedirect = cfg.domainName;
|
||||||
redirectCode = 307;
|
redirectCode = 307;
|
||||||
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "www.pvv.ntnu.no";
|
useACMEHost = "www.pvv.ntnu.no";
|
||||||
};
|
};
|
||||||
@@ -126,6 +127,7 @@ in {
|
|||||||
services.nginx.virtualHosts."www.pvv.org" = {
|
services.nginx.virtualHosts."www.pvv.org" = {
|
||||||
globalRedirect = cfg.domainName;
|
globalRedirect = cfg.domainName;
|
||||||
redirectCode = 307;
|
redirectCode = 307;
|
||||||
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "www.pvv.ntnu.no";
|
useACMEHost = "www.pvv.ntnu.no";
|
||||||
};
|
};
|
||||||
@@ -133,11 +135,13 @@ in {
|
|||||||
services.nginx.virtualHosts."pvv.org" = {
|
services.nginx.virtualHosts."pvv.org" = {
|
||||||
globalRedirect = cfg.domainName;
|
globalRedirect = cfg.domainName;
|
||||||
redirectCode = 307;
|
redirectCode = 307;
|
||||||
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "www.pvv.ntnu.no";
|
useACMEHost = "www.pvv.ntnu.no";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${cfg.domainName} = {
|
services.nginx.virtualHosts.${cfg.domainName} = {
|
||||||
|
kTLS = true;
|
||||||
locations = {
|
locations = {
|
||||||
# Proxy home directories
|
# Proxy home directories
|
||||||
"^~ /~" = {
|
"^~ /~" = {
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."mirrors.pvv.ntnu.no" = {
|
services.nginx.virtualHosts."mirrors.pvv.ntnu.no" = {
|
||||||
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."hookshot.pvv.ntnu.no" = {
|
services.nginx.virtualHosts."hookshot.pvv.ntnu.no" = {
|
||||||
|
kTLS = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."ooye.pvv.ntnu.no" = {
|
services.nginx.virtualHosts."ooye.pvv.ntnu.no" = {
|
||||||
|
kTLS = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/".proxyPass = "http://localhost:${cfg.socket}";
|
locations."/".proxyPass = "http://localhost:${cfg.socket}";
|
||||||
|
|||||||
Reference in New Issue
Block a user