mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
feat(dns,nginx): add some weird magic
This commit is contained in:
parent
ab03b23b45
commit
714a279fc2
8 changed files with 127 additions and 72 deletions
|
@ -1,4 +1,9 @@
|
|||
{ lib, inputs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.luj.homepage;
|
||||
|
@ -8,21 +13,12 @@ in
|
|||
enable = mkEnableOption "enable homepage";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
{
|
||||
luj.nginx.enable = true;
|
||||
services.nginx.virtualHosts."julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = inputs.homepage;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."www.julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = inputs.homepage;
|
||||
};
|
||||
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
luj.nginx.enable = true;
|
||||
services.nginx.virtualHosts."julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = inputs.homepage;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue