summary refs log tree commit diff stats
path: root/module/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-03-22 14:15:14 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-03-22 14:15:14 +0100
commit898471f49bbeabf456eced2a053c9db1b0bf51a5 (patch)
tree40100ac7e0ab457e2574784c6e01d106bd637e98 /module/default.nix
parentfix(module): Use correct port type (diff)
downloadnix-898471f49bbeabf456eced2a053c9db1b0bf51a5.zip
fix(module): Actually convert the integer to a string
Diffstat (limited to 'module/default.nix')
-rw-r--r--module/default.nix4
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;