ldap: actually serve the site

This commit is contained in:
silver 2023-07-27 19:33:28 +01:00
parent 283abf41ba
commit 3f2cbee15a

View file

@ -2,7 +2,7 @@
Gonna use a priper nixos module for this Gonna use a priper nixos module for this
*/ */
{ config, pkgs, lib, ... }: { config, pkgs, lib, inputs, ... }:
with lib; with lib;
let let
cfg = config.services.skynet_ldap; cfg = config.services.skynet_ldap;
@ -87,6 +87,14 @@ Gonna use a priper nixos module for this
636 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 # using https://nixos.wiki/wiki/OpenLDAP for base config
systemd.services.openldap = { systemd.services.openldap = {