Allow more ports for synapse-proxy apache

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-07-28 00:23:33 +02:00
parent 6bb313137b
commit 9268fe52af
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -86,7 +86,7 @@ in
{
ProxyRequests = "on";
AddDefaultCharset = "off";
AllowCONNECT = "443";
AllowCONNECT = [ "443" "8448" "8433" "8478" "3236" "8080" ];
}
{
ServerName = "synapse-proxy.in.redalder.org";
@ -101,7 +101,7 @@ in
};
}
{
ProxyMatch."^([a-zA-Z]+\.)+[a-zA-Z]*:(443|8443).*$" = {
ProxyMatch."^([a-zA-Z\-_0-9]+\.)+[a-zA-Z\-_0-9]*:(443|8448|8443|8478|3236|8080).*$" = {
AuthType = "Basic";
AuthName = "\"Password Required\"";
AuthUserFile = "/var/secret/htpasswd";
@ -114,15 +114,14 @@ in
];
RequireAny."" = {
Require = [
[ "ip 10.64.2.1" ]
[ "ip 127.0.0.1" ]
[ "ip 10.64.0.2" ]
];
};
};
};
}
{
ProxyMatch."^http:\/\/([a-zA-Z]+\.)+[a-zA-Z]*(|:(80))$" = {
ProxyMatch."^http:\/\/([a-zA-Z\-_0-9]+\.)+[a-zA-Z\-_0-9]*(|:(80|8080))$" = {
AuthType = "Basic";
AuthName = "\"Password Required\"";
AuthUserFile = "/var/secret/htpasswd";