actual: hardcode domain
This commit is contained in:
parent
86f77d2564
commit
9760d4d3bc
|
@ -33,10 +33,7 @@
|
|||
process_children_only = true;
|
||||
};
|
||||
|
||||
qenya.services.actual = {
|
||||
enable = true;
|
||||
domain = "actual.qenya.tel";
|
||||
};
|
||||
qenya.services.actual.enable = true;
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
@ -3,20 +3,18 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.qenya.services.actual;
|
||||
domain = "actual.qenya.tel";
|
||||
in
|
||||
{
|
||||
options.qenya.services.actual = {
|
||||
enable = mkEnableOption "Actual";
|
||||
domain = mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
enable = mkEnableOption "Actual Budget";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
${cfg.domain} = {
|
||||
${domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:5006/";
|
||||
|
|
Loading…
Reference in a new issue