2016-02-14 16:43:44 +01:00
|
|
|
{ config, lib, ... }:
|
2016-02-01 17:18:07 +01:00
|
|
|
|
2016-10-20 20:54:38 +02:00
|
|
|
with import <stockholm/lib>;
|
2016-02-01 17:18:07 +01:00
|
|
|
|
|
|
|
{
|
2016-12-23 09:46:32 +01:00
|
|
|
services.nginx = {
|
2016-02-01 17:18:07 +01:00
|
|
|
enable = true;
|
2016-12-23 09:46:32 +01:00
|
|
|
virtualHosts.default = {
|
|
|
|
serverAliases = [
|
2016-12-22 21:53:09 +01:00
|
|
|
"localhost"
|
|
|
|
"${config.krebs.build.host.name}"
|
2017-08-01 20:11:14 +02:00
|
|
|
"${config.krebs.build.host.name}.gg23"
|
2016-12-22 21:53:09 +01:00
|
|
|
"${config.krebs.build.host.name}.r"
|
|
|
|
];
|
2016-12-23 09:46:32 +01:00
|
|
|
locations."~ ^/~(.+?)(/.*)?\$".extraConfig = ''
|
|
|
|
alias /home/$1/public_html$2;
|
|
|
|
'';
|
2016-12-22 21:53:09 +01:00
|
|
|
};
|
2016-02-01 17:18:07 +01:00
|
|
|
};
|
2016-06-30 00:52:35 +02:00
|
|
|
tv.iptables.input-internet-accept-tcp = singleton "http";
|
2016-02-01 17:18:07 +01:00
|
|
|
}
|