traque test
This commit is contained in:
parent
eb4634e71c
commit
5ce5243fb8
5 changed files with 148 additions and 4 deletions
|
@ -126,6 +126,10 @@
|
|||
vm = "192.168.122.4";
|
||||
sshport = 22001;
|
||||
};
|
||||
"test.traque.katvayor.net" = {
|
||||
vm = "192.168.122.4";
|
||||
sshport = null;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
@ -141,6 +145,13 @@
|
|||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "https://${vm}/";
|
||||
extraConfig = ''
|
||||
proxy_set_header Connection ''';
|
||||
proxy_http_version 1.1;
|
||||
chunked_transfer_encoding off;
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
'';
|
||||
};
|
||||
}
|
||||
) vhosts;
|
||||
|
@ -149,7 +160,7 @@
|
|||
lib.mapAttrsToList (
|
||||
vhost:
|
||||
{ vm, sshport }:
|
||||
''
|
||||
lib.optionalString (!isNull sshport) ''
|
||||
server {
|
||||
listen ${toString sshport};
|
||||
proxy_pass ${vm}:22;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue