diff options
author | lassulus <lass@lassul.us> | 2016-12-22 23:23:59 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2016-12-22 23:52:52 +0100 |
commit | 3d96bcf846f7eeef23e349ce088741aa25d81f11 (patch) | |
tree | 4210105d608dffd11c3ba7a9825d60dbdc512efd | |
parent | 7a7c8323100c0d5c2674329f93e666cf16616547 (diff) |
l 1 mors: expose public_html to LAN
-rw-r--r-- | lass/1systems/mors.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lass/1systems/mors.nix b/lass/1systems/mors.nix index 594f342db..4553cc15b 100644 --- a/lass/1systems/mors.nix +++ b/lass/1systems/mors.nix @@ -68,11 +68,19 @@ with import <stockholm/lib>; { krebs.nginx = { enable = true; - servers.default.locations = [ - (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' - alias /home/$1/public_html$2; - '') - ]; + servers.default = { + server-names = [ + "localhost" + "${config.krebs.build.host.name}" + "${config.krebs.build.host.name}.r" + "${config.krebs.build.host.name}.retiolum" + ]; + locations = [ + (nameValuePair "~ ^/~(.+?)(/.*)?\$" '' + alias /home/$1/public_html$2; + '') + ]; + }; }; } { |