ports test
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
port = config.den.portmap.matrix;
|
||||
domain = "bug.tools";
|
||||
matrixDomain = "matrix.${domain}";
|
||||
clientConfig = {
|
||||
@@ -29,7 +30,7 @@
|
||||
|
||||
listeners = [
|
||||
{
|
||||
port = 8008;
|
||||
port = port;
|
||||
bind_addresses = ["127.0.0.1"];
|
||||
type = "http";
|
||||
tls = false;
|
||||
@@ -89,7 +90,7 @@
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8008";
|
||||
proxyPass = "http://127.0.0.1:${toString port}";
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
Reference in New Issue
Block a user