stockholm/tv/2configs/nginx/public_html.nix

19 lines
465 B
Nix
Raw Normal View History

2022-12-09 00:31:56 +00:00
with import ./lib;
{ config, ... }: {
services.nginx = {
2016-02-01 16:18:07 +00:00
enable = true;
virtualHosts.default = {
serverAliases = [
2016-12-22 20:53:09 +00:00
"localhost"
"${config.krebs.build.host.name}"
2020-08-19 00:30:51 +00:00
"${config.krebs.build.host.name}.hkw"
2016-12-22 20:53:09 +00:00
"${config.krebs.build.host.name}.r"
];
2021-02-11 22:21:11 +00:00
locations."~ ^/~([a-z]+)(?:/(.*))?\$" = {
alias = "/srv/$1/public_html/$2";
};
2016-12-22 20:53:09 +00:00
};
2016-02-01 16:18:07 +00:00
};
2016-06-29 22:52:35 +00:00
tv.iptables.input-internet-accept-tcp = singleton "http";
2016-02-01 16:18:07 +00:00
}