80 lines
1.8 KiB
Nix
80 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
services.caddy = {
|
|
enable = true;
|
|
package = pkgs.callPackage ../../../pkgs/caddy.nix {
|
|
plugins = [
|
|
"github.com/greenpau/caddy-security"
|
|
"github.com/sjtug/caddy2-filter"
|
|
];
|
|
vendorSha256 = "sha256-bIXe1xugwCJG2xzDDASBeOLIFLnkqmMSrAlWeyxo9QU=";
|
|
};
|
|
email = "hedgehog@mrhedgehog.xyz";
|
|
# globalConfig = ''
|
|
# '';
|
|
virtualHosts = {
|
|
"reddit.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:4000
|
|
'';
|
|
};
|
|
"adguard.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:2500
|
|
'';
|
|
};
|
|
"rss.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:6000
|
|
'';
|
|
};
|
|
"media.thehedgehog.me" = {
|
|
serverAliases = ["jellyfin.thehedgehog.me"];
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:8096
|
|
'';
|
|
};
|
|
"hydra.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:3000
|
|
'';
|
|
};
|
|
"dav.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:5352
|
|
'';
|
|
};
|
|
"rss-bridge.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:80
|
|
'';
|
|
};
|
|
"git.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:3001
|
|
'';
|
|
};
|
|
"bw.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:8000
|
|
'';
|
|
};
|
|
"dash.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:3003
|
|
'';
|
|
};
|
|
"sync.thehedgehog.me" = {
|
|
extraConfig = ''
|
|
reverse_proxy http://marvin:8384
|
|
'';
|
|
};
|
|
};
|
|
extraConfig = ''
|
|
'';
|
|
};
|
|
}
|