diff options
| author | toufic ar <contact@toufy.me> | 2026-04-22 14:25:15 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-04-22 14:25:15 +0300 |
| commit | 69f6d02c63e941c230ff8f172c9a8af73a40dc52 (patch) | |
| tree | 3ec66ac00523adc94ea9a4a10b56ce8b8c90397b /aphrodite | |
| parent | c7349e466fef7ecff5a46b1d0c819975a6bdcb8c (diff) | |
| download | servers-main.tar.gz servers-main.zip | |
Diffstat (limited to 'aphrodite')
| -rw-r--r-- | aphrodite/default.nix | 1 | ||||
| -rw-r--r-- | aphrodite/http/default.nix | 9 |
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; + }; +} |
