mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
Added Authelia : en chantier
This commit is contained in:
parent
8d4b959af6
commit
ff54bc72b5
7 changed files with 232 additions and 9 deletions
24
modules/homer/default.nix
Normal file
24
modules/homer/default.nix
Normal 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/";
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue