24 lines
507 B
Nix
24 lines
507 B
Nix
{ config, lib, ... }:
|
|
|
|
with import <stockholm/lib>;
|
|
|
|
{
|
|
krebs.nginx = {
|
|
enable = true;
|
|
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;
|
|
'')
|
|
];
|
|
};
|
|
};
|
|
tv.iptables.input-internet-accept-tcp = singleton "http";
|
|
}
|