2022-11-27 22:31:08 +00:00
|
|
|
{
|
2023-01-28 22:51:33 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
2023-10-30 01:14:52 +00:00
|
|
|
}:
|
|
|
|
{
|
2023-03-05 22:54:56 +00:00
|
|
|
systemd.tmpfiles.rules = [
|
|
|
|
"d '/data/srv/www/os/download/' 0750 hakkonaut hakkonaut - -"
|
|
|
|
];
|
|
|
|
|
2022-11-27 22:31:08 +00:00
|
|
|
services.caddy = {
|
|
|
|
enable = lib.mkForce true;
|
2023-01-29 16:39:34 +00:00
|
|
|
group = "hakkonaut";
|
2022-11-27 22:31:08 +00:00
|
|
|
email = "admins@pub.solar";
|
2023-07-13 19:06:01 +00:00
|
|
|
enableReload = true;
|
|
|
|
globalConfig = lib.mkForce ''
|
|
|
|
grace_period 60s
|
|
|
|
'';
|
2022-11-27 22:31:08 +00:00
|
|
|
virtualHosts = {
|
2023-01-28 20:26:13 +00:00
|
|
|
"ci.pub.solar" = {
|
|
|
|
logFormat = lib.mkForce ''
|
|
|
|
output discard
|
|
|
|
'';
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy :4000
|
|
|
|
'';
|
|
|
|
};
|
2022-11-28 14:18:32 +00:00
|
|
|
"obs-portal.pub.solar" = {
|
|
|
|
logFormat = lib.mkForce ''
|
|
|
|
output discard
|
|
|
|
'';
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy obs-portal.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.int.greenbaum.zone:3000
|
|
|
|
'';
|
|
|
|
};
|
2022-11-27 22:31:08 +00:00
|
|
|
};
|
|
|
|
};
|
2023-01-28 22:51:33 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [80 443];
|
2022-11-27 22:31:08 +00:00
|
|
|
}
|