Add wildcard dns

This commit is contained in:
muon 2026-03-16 18:20:18 +00:00
parent 6c344e061f
commit da8564b3a6
3 changed files with 39 additions and 16 deletions

View file

@ -69,6 +69,20 @@ in {
services.xserver.windowManager.i3.enable = true;
services.actual.enable = true;
# Reverse proxy: *.word.local -> localhost:3030
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts."~^(?<subdomain>.+)\\.word\\.local$" = {
serverName = "~^(?<subdomain>.+)\\.word\\.local$";
locations."/" = {
proxyPass = "http://127.0.0.1:3030";
proxyWebsockets = true;
};
};
};
networking.firewall.allowedTCPPorts = [ 80 ];
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = ["user-with-access-to-virtualbox"];