Set the correct port
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
actualBudget.enable = lib.mkEnableOption "enables actual-budget";
|
||||
};
|
||||
|
||||
let
|
||||
port = 5006;
|
||||
in
|
||||
config = lib.mkIf config.actualBudget.enable {
|
||||
|
||||
users.users.actualbudget = {
|
||||
@@ -25,6 +28,7 @@
|
||||
|
||||
services.actual.enable = true;
|
||||
services.actual.settings.config.dataDir = "/srv/actual-budget";
|
||||
services.actual.settings.options.port = ${port};
|
||||
|
||||
# Open http and https ports to the public
|
||||
networking.firewall.allowedTCPPorts = [ 443 80 ];
|
||||
@@ -36,7 +40,7 @@
|
||||
useACMEHost = "kyren.codes";
|
||||
forceSSL = true;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:5006/";
|
||||
locations."/".proxyPass = "http://localhost:${port}/";
|
||||
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