pub-solar-os/hosts/flora-6/caddy.nix

33 lines
595 B
Nix
Raw Normal View History

2022-11-27 22:31:08 +00:00
{ config
, lib
, pkgs
, self
, ...
}:
{
services.caddy = {
enable = lib.mkForce true;
email = "admins@pub.solar";
globalConfig = lib.mkForce "";
virtualHosts = {
"auth.pub.solar" = {
logFormat = lib.mkForce ''
output discard
'';
extraConfig = ''
reverse_proxy :8080
'';
};
"git.pub.solar" = {
logFormat = lib.mkForce ''
output discard
'';
extraConfig = ''
reverse_proxy :3000
'';
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}