mirror of
https://seed.radicle.dev/rad:z254T5p17bdFPmzfDojsdjo4HjpoZ.git
synced 2026-10-18 19:10:32 +08:00
nginx: Force TLS
This commit is contained in:
@@ -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}";
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -13,8 +13,8 @@ in {
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
autoindex on;
|
||||
'';
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
serverName = name;
|
||||
};
|
||||
|
||||
|
||||
@@ -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}";
|
||||
|
||||
@@ -60,8 +60,8 @@
|
||||
httpd = {
|
||||
enable = true;
|
||||
nginx = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
serverName = config.networking.fqdn;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user