refactor: store port as integer
This commit is contained in:
parent
0f2801f823
commit
4502e197bf
19 changed files with 64 additions and 93 deletions
|
|
@ -1,10 +1,9 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
port = "5013";
|
||||
port = 5013;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
|
@ -13,7 +12,7 @@ in
|
|||
dataDir = "/srv/paperless";
|
||||
database.createLocally = true;
|
||||
passwordFile = config.age.secrets.paperless.path;
|
||||
port = lib.toInt port;
|
||||
inherit port;
|
||||
settings = {
|
||||
PAPERLESS_URL = "https://paperless.fi33.buzz";
|
||||
};
|
||||
|
|
@ -33,7 +32,7 @@ in
|
|||
nginx.virtualHosts."paperless.fi33.buzz" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "fi33.buzz";
|
||||
locations."/".proxyPass = "http://localhost:${port}";
|
||||
locations."/".proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue