refactor: store port as integer
This commit is contained in:
parent
0f2801f823
commit
4502e197bf
19 changed files with 64 additions and 93 deletions
|
|
@ -1,5 +1,5 @@
|
|||
let
|
||||
port = "5002";
|
||||
port = 5002;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
|
@ -7,7 +7,7 @@ in
|
|||
enable = true;
|
||||
settings = {
|
||||
base-url = "https://ntfy-sh.fi33.buzz";
|
||||
listen-http = ":${port}";
|
||||
listen-http = ":${toString port}";
|
||||
behind-proxy = true;
|
||||
};
|
||||
};
|
||||
|
|
@ -16,7 +16,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = "fi33.buzz";
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${port}";
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue