mirror of
https://github.com/nmasur/dotfiles
synced 2024-09-20 02:24:45 +00:00
29 lines
516 B
Nix
29 lines
516 B
Nix
|
{ config, ... }: {
|
||
|
|
||
|
config = {
|
||
|
|
||
|
services.thelounge = {
|
||
|
public = false;
|
||
|
port = 9000;
|
||
|
extraConfig = {
|
||
|
reverseProxy = true;
|
||
|
maxHistory = 10000;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# Allow web traffic to Caddy
|
||
|
caddy.routes = [{
|
||
|
match = [{ host = [ config.hostnames.irc ]; }];
|
||
|
handle = [{
|
||
|
handler = "reverse_proxy";
|
||
|
upstreams = [{
|
||
|
dial =
|
||
|
"localhost:${builtins.toString config.services.thelounge.port}";
|
||
|
}];
|
||
|
}];
|
||
|
}];
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|