Expose firewall port and chat redirect
This commit is contained in:
@@ -25,8 +25,11 @@
|
|||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
header /.well-known/* "Access-Control-Allow-Origin" "*"
|
header /.well-known/* "Access-Control-Allow-Origin" "*"
|
||||||
respond /.well-known/matrix/client "{\"m.homeserver\": {\"base_url\": \"https://broccoli.town\"}}"
|
respond /.well-known/matrix/client "{\"m.homeserver\": {\"base_url\": \"https://broccoli.town\"}}"
|
||||||
|
|
||||||
reverse_proxy /_matrix/* http://localhost:8008
|
reverse_proxy /_matrix/* http://localhost:8008
|
||||||
reverse_proxy /_synapse/client/* http://localhost:8008
|
reverse_proxy /_synapse/client/* http://localhost:8008
|
||||||
|
|
||||||
|
redir / https://chat.broccoli.town
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,16 @@
|
|||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||||
|
|
||||||
networking.hostName = "dingserver";
|
networking = {
|
||||||
networking.interfaces.ens3.useDHCP = true;
|
hostName = "dingserver";
|
||||||
|
interfaces.ens3.useDHCP = true;
|
||||||
|
|
||||||
|
firewall.interfaces = {
|
||||||
|
"tailscale0" = {
|
||||||
|
allowedUDPPorts = [ 41641 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
helix
|
helix
|
||||||
|
|||||||
Reference in New Issue
Block a user