summaryrefslogtreecommitdiffstats
path: root/lass/1systems
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2016-12-22 23:23:59 +0100
committerlassulus <lass@lassul.us>2016-12-22 23:52:52 +0100
commit3d96bcf846f7eeef23e349ce088741aa25d81f11 (patch)
tree4210105d608dffd11c3ba7a9825d60dbdc512efd /lass/1systems
parent7a7c8323100c0d5c2674329f93e666cf16616547 (diff)
l 1 mors: expose public_html to LAN
Diffstat (limited to 'lass/1systems')
-rw-r--r--lass/1systems/mors.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/lass/1systems/mors.nix b/lass/1systems/mors.nix
index 594f342d..4553cc15 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;
+ '')
+ ];
+ };
};
}
{