Fix port type in simpleProxy

This commit is contained in:
Jacob Hinkle 2022-08-31 08:11:38 -04:00
parent 9dc1167f9f
commit 92b6ad3d73
2 changed files with 7 additions and 7 deletions

6
flake.lock generated
View File

@ -34,11 +34,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1661788116,
"narHash": "sha256-bLPHlcCGZYojB/Z7L/lmbLAMsxGgqrFhlxF0jMsIm/I=",
"lastModified": 1661864979,
"narHash": "sha256-ajXYYTE1uoY3ei/P1v+Knklf2QNCBxMtw1gByaPTGU4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "cc634d9aa08ed89c9ff655de06ab2e593c72ebc1",
"rev": "a28adc36c20fd2fbaeb06ec9bbd79b6bf7443979",
"type": "github"
},
"original": {

View File

@ -2,21 +2,21 @@
enable = true;
recommendedProxySettings = true;
virtualHosts = let
simpleProxy ip {
simpleProxy = ip : {
forceSSL = true;
enableACME = true;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://[::1]:${ip}";
proxyPass = "http://[::1]:${toString ip}";
proxyWebsockets = true;
};
}
};
in {
"home.jhink.org" = simpleProxy 8123;
"git.jhink.org" = simpleProxy 3000;
"paperless.jhink.org" = simpleProxy 8000;
"vault.jhink.org" = simpleProxy 8081;
#"vault.jhink.org" = simpleProxy 8081;
};
}