Put matrix federation behind reverse proxy
This commit is contained in:
parent
44215ecfc9
commit
fe86c128ed
4 changed files with 30 additions and 7 deletions
|
|
@ -7,7 +7,7 @@
|
|||
nftables.enable = true;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 80 443 ];
|
||||
allowedTCPPorts = [ 80 443 8448 ];
|
||||
allowedUDPPorts = [ 51820 51821 51822 51824 51827 51828 51829 51830 ];
|
||||
};
|
||||
wireguard = {
|
||||
|
|
|
|||
|
|
@ -58,6 +58,11 @@
|
|||
ssl_preread on;
|
||||
proxy_protocol on;
|
||||
}
|
||||
server {
|
||||
listen [::]:8448;
|
||||
proxy_pass 10.202.41.112:8448; # matrix federation port
|
||||
proxy_protocol on;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue