Make the port customisable

This commit is contained in:
Andreas Zweili 2022-05-19 21:41:45 +02:00
parent 804d95aaeb
commit d44bb98997
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ domain, inputs, ... }:
{ domain, inputs, port ? "8080", ... }:
{
imports = [
"${inputs.self}/modules/nginx-acme-base"
@ -35,7 +35,7 @@
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
proxyPass = "http://127.0.0.1:${port}";
proxyWebsockets = true; # needed if you need to use WebSocket
};
};