ldap: actually serve the site
This commit is contained in:
parent
283abf41ba
commit
3f2cbee15a
1 changed files with 9 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue