diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-22 14:15:14 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-22 14:15:14 +0100 |
| commit | 898471f49bbeabf456eced2a053c9db1b0bf51a5 (patch) | |
| tree | 40100ac7e0ab457e2574784c6e01d106bd637e98 /module/default.nix | |
| parent | fix(module): Use correct port type (diff) | |
| download | nix-898471f49bbeabf456eced2a053c9db1b0bf51a5.zip | |
fix(module): Actually convert the integer to a string
Diffstat (limited to '')
| -rw-r--r-- | module/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/default.nix b/module/default.nix index ed705aa..6339fef 100644 --- a/module/default.nix +++ b/module/default.nix @@ -102,7 +102,7 @@ in { "" "${lib.getExe cfg.server} \ serve \ - --port ${cfg.port} \ + --port ${builtins.toString cfg.port} \ ${lib.strings.optionalString (cfg.secretKeyFile != null) "--secret-key-file ${cfg.secretKeyFile}"} \ --host ${cfg.address} \ --db-path ${cfg.dbPath}" @@ -125,7 +125,7 @@ in { services.nginx.virtualHosts."${cfg.domain}" = { locations."/api" = { - proxyPass = "http://127.0.0.1:${cfg.port}"; + proxyPass = "http://127.0.0.1:${builtins.toString cfg.port}"; recommendedProxySettings = true; proxyWebsockets = true; |
