ports test

This commit is contained in:
4DBug
2026-03-03 17:05:04 -06:00
parent 4974969c6f
commit c10eca565f
17 changed files with 85 additions and 55 deletions

View File

@@ -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;