Added Authelia : en chantier

This commit is contained in:
Julien Malka 2022-02-26 19:07:28 +01:00
parent 8d4b959af6
commit ff54bc72b5
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
7 changed files with 232 additions and 9 deletions

24
modules/homer/default.nix Normal file
View file

@ -0,0 +1,24 @@
{ lib, pkgs, inputs, config, ... }:
with lib;
let
cfg = config.luj.homer;
in
{
options.luj.homer = {
enable = mkEnableOption "enable homer";
};
config = mkIf cfg.enable
{
luj.nginx.enable = true;
services.nginx.virtualHosts."luj.home" = {
sslCertificate = "/etc/nginx/certs/home/cert.pem";
sslCertificateKey = "/etc/nginx/certs/home/key.pem";
forceSSL = true;
root = "/srv/homer/";
};
};
}