Enabled back Dashy
This commit is contained in:
parent
8b2e73192d
commit
266b891598
3 changed files with 266 additions and 39 deletions
|
|
@ -39,6 +39,14 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
subdomain = lib.mkOption {
|
||||
default = "casa";
|
||||
type = lib.types.str;
|
||||
description = ''
|
||||
The subdomain where Dashy is reachable
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -54,7 +62,7 @@ in
|
|||
|
||||
(lib.mkIf cfg.proxy.enable {
|
||||
services.caddy = with cfg.proxy; {
|
||||
virtualHosts."home.${domain}".extraConfig = ''
|
||||
virtualHosts."${subdomain}.${domain}".extraConfig = ''
|
||||
root * ${config.services.dashy.finalDrv}
|
||||
file_server
|
||||
import cloudflare_${domain}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue