os/hosts/flora-6/caddy.nix

33 lines
595 B
Nix

{ 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 ];
}