From f9652b6d3b8ccd502373be71c7bdcc193513c656 Mon Sep 17 00:00:00 2001 From: stubbfelnewpc Date: Tue, 30 Aug 2022 18:21:55 +0000 Subject: [PATCH] add port --- .gitignore | 3 +++ unciv.nix | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 55c35ac..71a1a0b 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,6 @@ *.code-workspace # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,git + +result/ +tmp/ \ No newline at end of file diff --git a/unciv.nix b/unciv.nix index 3d14900..113e7b7 100644 --- a/unciv.nix +++ b/unciv.nix @@ -1,5 +1,5 @@ # nix-build unciv.rix -{ pkgs ? import { }, stateDir ? "/var/lib/unciv" }: +{ pkgs ? import { }, stateDir ? "/var/lib/unciv", port ? "80", }: let @@ -21,7 +21,7 @@ in serviceConfig.Type = "oneshot"; script = '' mkdir -p "${stateDir}" - ${uncivServerCmd}/bin/UncivServer.sh -f "${stateDir}" + ${uncivServerCmd}/bin/UncivServer.sh -f "${stateDir}" -p "${port}" ''; };