flake: update ts-reverse-proxy
This commit is contained in:
parent
6505bbb4ae
commit
4dfe892a41
10
flake.lock
generated
10
flake.lock
generated
@ -409,7 +409,7 @@
|
||||
"sops-nix": "sops-nix",
|
||||
"stable": "stable",
|
||||
"traygent": "traygent",
|
||||
"tsRevProx": "tsRevProx",
|
||||
"ts-reverse-proxy": "ts-reverse-proxy",
|
||||
"tsvnstat": "tsvnstat",
|
||||
"unstable": "unstable",
|
||||
"unstableSmall": "unstableSmall",
|
||||
@ -546,18 +546,18 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"tsRevProx": {
|
||||
"ts-reverse-proxy": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"unstable"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1718734761,
|
||||
"narHash": "sha256-pzzq+tTx6Pp5BqulZjcVrnxbqBe91aYfS4tKkI/VULg=",
|
||||
"lastModified": 1719582611,
|
||||
"narHash": "sha256-w1JrCWzygoUb52teJ3M59YMi0+as2vkQmnyU70Pd17w=",
|
||||
"owner": "qbit",
|
||||
"repo": "ts-reverse-proxy",
|
||||
"rev": "ba7b61a85bb2291bd4972dc5f89b647b523c9284",
|
||||
"rev": "f537ecf2328c2486f12a4cc42a5d3c768cbca4f4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -91,7 +91,7 @@
|
||||
url = "github:qbit/po";
|
||||
inputs.nixpkgs.follows = "unstable";
|
||||
};
|
||||
tsRevProx = {
|
||||
ts-reverse-proxy = {
|
||||
url = "github:qbit/ts-reverse-proxy";
|
||||
inputs.nixpkgs.follows = "unstable";
|
||||
};
|
||||
@ -116,7 +116,7 @@
|
||||
, pots
|
||||
, pr-status
|
||||
, stable
|
||||
, tsRevProx
|
||||
, ts-reverse-proxy
|
||||
, traygent
|
||||
, tsvnstat
|
||||
, unstable
|
||||
@ -163,7 +163,7 @@
|
||||
inputs.microca.overlay
|
||||
inputs.pots.overlay
|
||||
inputs.pr-status.overlay
|
||||
inputs.tsRevProx.overlay
|
||||
inputs.ts-reverse-proxy.overlay
|
||||
];
|
||||
|
||||
buildSys = sys: sysBase: extraMods: name:
|
||||
@ -342,7 +342,7 @@
|
||||
inherit (tsvnstat.packages.${system}) tsvnstat;
|
||||
inherit (pots.packages.${system}) pots;
|
||||
inherit (po.packages.${system}) po;
|
||||
inherit (tsRevProx.packages.${system}) ts-reverse-proxy;
|
||||
inherit (ts-reverse-proxy.packages.${system}) ts-reverse-proxy;
|
||||
inherit (traygent.packages.${system}) traygent;
|
||||
|
||||
inherit (spkgs) matrix-synapse;
|
||||
|
@ -44,6 +44,14 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
hostHeader = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = ''
|
||||
Manually set the Host header
|
||||
'';
|
||||
};
|
||||
|
||||
user = mkOption {
|
||||
type = with types; oneOf [ str int ];
|
||||
default = name;
|
||||
@ -99,7 +107,9 @@ in
|
||||
(name: conf: nameValuePair name {
|
||||
description = "ts-reverse-proxy instance ${name}";
|
||||
enable = true;
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
environment = { HOME = "${conf.dataDir}"; };
|
||||
|
||||
@ -107,7 +117,7 @@ in
|
||||
User = conf.user;
|
||||
Group = conf.group;
|
||||
|
||||
ExecStart = "${cfg.package}/bin/ts-reverse-proxy -name ${conf.reverseName} -port ${
|
||||
ExecStart = "${cfg.package}/bin/ts-reverse-proxy ${lib.optionalString (conf.hostHeader != "") "-host-header '${conf.hostHeader}'"} -name ${conf.reverseName} -port ${
|
||||
toString conf.reversePort
|
||||
} -ip ${conf.reverseIP}";
|
||||
#EnvironmentFile = conf.envFile;
|
||||
|
Loading…
Reference in New Issue
Block a user