Fixed let in syntax
This commit is contained in:
@@ -8,9 +8,6 @@
|
||||
actualBudget.enable = lib.mkEnableOption "enables actual-budget";
|
||||
};
|
||||
|
||||
let
|
||||
port = 5006;
|
||||
in
|
||||
config = lib.mkIf config.actualBudget.enable {
|
||||
|
||||
users.users.actualbudget = {
|
||||
@@ -28,7 +25,7 @@
|
||||
|
||||
services.actual.enable = true;
|
||||
services.actual.settings.config.dataDir = "/srv/actual-budget";
|
||||
services.actual.settings.options.port = ${port};
|
||||
services.actual.settings.options.port = 5006;
|
||||
|
||||
# Open http and https ports to the public
|
||||
networking.firewall.allowedTCPPorts = [ 443 80 ];
|
||||
@@ -40,7 +37,7 @@
|
||||
useACMEHost = "kyren.codes";
|
||||
forceSSL = true;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${port}/";
|
||||
locations."/".proxyPass = "http://localhost:5006/";
|
||||
locations."/".extraConfig = ''
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user