summaryrefslogtreecommitdiff
path: root/aphrodite
diff options
context:
space:
mode:
Diffstat (limited to 'aphrodite')
-rw-r--r--aphrodite/default.nix1
-rw-r--r--aphrodite/http/default.nix9
2 files changed, 10 insertions, 0 deletions
diff --git a/aphrodite/default.nix b/aphrodite/default.nix
index fb4101c..ad23015 100644
--- a/aphrodite/default.nix
+++ b/aphrodite/default.nix
@@ -2,6 +2,7 @@
imports = [
./network.nix
./devops
+ ./http
./mail
./search
];
diff --git a/aphrodite/http/default.nix b/aphrodite/http/default.nix
new file mode 100644
index 0000000..22a39b2
--- /dev/null
+++ b/aphrodite/http/default.nix
@@ -0,0 +1,9 @@
+{config, ...}: let
+ customDomain = config.customOps.domain.fqdn;
+in {
+ services.nginx.virtualHosts.${customDomain} = {
+ root = "/var/www/${customDomain}";
+ forceSSL = true;
+ enableACME = true;
+ };
+}