nginx: Force TLS

This commit is contained in:
Lorenz Leutgeb
2025-10-17 12:33:42 +02:00
parent 3d9db32060
commit 55dac18cf1
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -28,8 +28,8 @@ in {
};
};
nginx.virtualHosts.${domain} = {
addSSL = true;
enableACME = true;
forceSSL = true;
serverName = domain;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString port}";
+1 -1
View File
@@ -36,8 +36,8 @@
};
};
services.nginx.virtualHosts."bootstrap.radicle.xyz" = {
addSSL = true;
enableACME = true;
forceSSL = true;
serverName = "bootstrap.radicle.xyz";
root = "/var/www/bootstrap.radicle.xyz";
locations."/".extraConfig = ''
+1 -1
View File
@@ -13,8 +13,8 @@ in {
add_header 'Access-Control-Allow-Origin' '*';
autoindex on;
'';
addSSL = true;
enableACME = true;
forceSSL = true;
serverName = name;
};
+1 -1
View File
@@ -19,8 +19,8 @@ in {
};
nginx.virtualHosts.${domain} = {
addSSL = true;
enableACME = true;
forceSSL = true;
serverName = domain;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString port}";
+1 -1
View File
@@ -60,8 +60,8 @@
httpd = {
enable = true;
nginx = {
addSSL = true;
enableACME = true;
forceSSL = true;
serverName = config.networking.fqdn;
};
};