diff options
| author | Isabella Morgana Bastaja <isabella@sorre.xyz> | 2026-04-17 16:16:18 +0200 |
|---|---|---|
| committer | Isabella Morgana Bastaja <isabella@sorre.xyz> | 2026-04-17 17:00:15 +0200 |
| commit | d3e954ea3d23f5db8815981dcf30e219b32450f9 (patch) | |
| tree | 69c889c87fc1aa80a37e5670b661751c4190f37a /hosts/sagittarius/web/blog.nix | |
| parent | ca39e9b78558bcd11e19148476ea184b235e8fa8 (diff) | |
sagittarius: add priv blog section
Diffstat (limited to 'hosts/sagittarius/web/blog.nix')
| -rw-r--r-- | hosts/sagittarius/web/blog.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/hosts/sagittarius/web/blog.nix b/hosts/sagittarius/web/blog.nix index 671674f..d69ea20 100644 --- a/hosts/sagittarius/web/blog.nix +++ b/hosts/sagittarius/web/blog.nix @@ -1,4 +1,9 @@ -{ inputs, pkgs, ... }: +{ + inputs, + pkgs, + config, + ... +}: { imports = [ ./acme.nix ]; networking.firewall.allowedTCPPorts = [ @@ -14,5 +19,12 @@ forceSSL = true; root = inputs.sorre-website.packages.${pkgs.system}.default; }; + + virtualHosts."priv.sorre.xyz" = { + enableACME = true; + forceSSL = true; + root = "/var/www/priv"; + basicAuthFile = config.sops.secrets."priv-blog-auth-file".path; + }; }; } |
