From 3f2cbee15afbde3cb4510ec7a9cb42a17f12ddbb Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 27 Jul 2023 19:33:28 +0100 Subject: [PATCH] ldap: actually serve the site --- applications/ldap.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/applications/ldap.nix b/applications/ldap.nix index 12ba71f..be574e4 100644 --- a/applications/ldap.nix +++ b/applications/ldap.nix @@ -2,7 +2,7 @@ Gonna use a priper nixos module for this */ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, inputs, ... }: with lib; let cfg = config.services.skynet_ldap; @@ -87,6 +87,14 @@ Gonna use a priper nixos module for this 636 ]; + services.nginx.virtualHosts = { + "${cfg.domain.sub}.${cfg.domain.base}.${cfg.domain.tld}" = { + forceSSL = true; + useACMEHost = "skynet"; + root = "${inputs.skynet_ldap_frontend.defaultPackage."x86_64-linux"}"; + }; + }; + # using https://nixos.wiki/wiki/OpenLDAP for base config systemd.services.openldap = {