initial commit
This commit is contained in:
commit
47c42dc7a6
14 changed files with 490 additions and 0 deletions
49
modules/caddy.nix
Normal file
49
modules/caddy.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
"extremist.software" = {
|
||||
extraConfig = ''
|
||||
respond "Hi"
|
||||
'';
|
||||
};
|
||||
|
||||
"git.extremist.software" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:3000
|
||||
'';
|
||||
};
|
||||
|
||||
"mail.extremist.software" = {
|
||||
# Stalwart handles its own certs usually, or we can proxy UI here
|
||||
# Stalwart UI is usually on 8080
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:8080
|
||||
'';
|
||||
};
|
||||
|
||||
"search.extremist.software" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:8082
|
||||
'';
|
||||
};
|
||||
|
||||
"status.extremist.software" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:3001 # Grafana
|
||||
'';
|
||||
};
|
||||
|
||||
"matrix.extremist.software" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy /_matrix/* localhost:6167
|
||||
reverse_proxy /_synapse/client/* localhost:6167
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue