summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-08-07 21:55:26 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-08-07 21:55:26 +0200
commitfa3c877da11abf0af97f20192bee02cbdddb5753 (patch)
treefd8bb41df4ce2a36b33ef24ebde2de1194364e7f
parenta2f14cb46f249ecb388252d3f9d88f1efe8e8227 (diff)
enable https
-rw-r--r--config/networking.nix11
-rw-r--r--config/searx/default.nix2
2 files changed, 12 insertions, 1 deletions
diff --git a/config/networking.nix b/config/networking.nix
index ba49ea9..cb43347 100644
--- a/config/networking.nix
+++ b/config/networking.nix
@@ -19,6 +19,11 @@
};
};
+ security.acme = {
+ acceptTerms = true;
+ email = "quentin@aristote.fr";
+ };
+
services.nginx = {
enable = true;
virtualHosts = {
@@ -30,7 +35,11 @@
'';
};
- "quentin.aristote.fr" = { root = "${pkgs.personal.academic-webpage}"; };
+ "quentin.aristote.fr" = {
+ root = "${pkgs.personal.academic-webpage}";
+ forceSSL = true;
+ enableACME = true;
+ };
};
};
diff --git a/config/searx/default.nix b/config/searx/default.nix
index d58cb95..2717868 100644
--- a/config/searx/default.nix
+++ b/config/searx/default.nix
@@ -13,6 +13,8 @@ let
in {
# Nginx
services.nginx.virtualHosts."searx.aristote.fr" = {
+ forceSSL = true;
+ enableACME = true;
locations = {
"/" = {
proxyPass = "http://127.0.0.1:${toString ports.filtron.listen}";