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