mirror of
https://codeberg.org/muon/home.git
synced 2026-07-04 07:59:33 +00:00
Add wildcard dns
This commit is contained in:
parent
6c344e061f
commit
da8564b3a6
3 changed files with 39 additions and 16 deletions
|
|
@ -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"];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue