Compare commits
No commits in common. "4b6675639bcbf87f6dd61e7b6ff1011aafb05131" and "9e7130eb36be706657197c08ce70ff02f22ccc8b" have entirely different histories.
4b6675639b
...
9e7130eb36
|
|
@ -4,7 +4,7 @@ let
|
|||
in
|
||||
{
|
||||
services.kanidm = {
|
||||
package = pkgs.kanidm_1_11;
|
||||
package = pkgs.kanidm_1_10;
|
||||
server = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -1,40 +0,0 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "irc.technogothic.net";
|
||||
ircs_port = 6697;
|
||||
irc_port = 6667;
|
||||
in
|
||||
{
|
||||
services.soju = {
|
||||
enable = true;
|
||||
hostName = domain;
|
||||
|
||||
listen = [ "irc://localhost:${toString irc_port}" ];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ ircs_port ];
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."${domain}" = {
|
||||
useACMEHost = "technogothic.net";
|
||||
forceSSL = true;
|
||||
};
|
||||
|
||||
streamConfig =
|
||||
let
|
||||
cert_root = config.security.acme.certs."technogothic.net".directory;
|
||||
in
|
||||
''
|
||||
server {
|
||||
listen ${toString ircs_port} ssl;
|
||||
listen [::]:${toString ircs_port} ssl;
|
||||
proxy_pass localhost:${toString irc_port};
|
||||
proxy_protocol on;
|
||||
|
||||
ssl_certificate ${cert_root}/fullchain.pem;
|
||||
ssl_certificate_key ${cert_root}/key.pem;
|
||||
ssl_trusted_certificate ${cert_root}/chain.pem;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -17,7 +17,6 @@
|
|||
../../common/fragments/hedgedoc.nix
|
||||
../../common/fragments/kanidm.nix
|
||||
../../common/fragments/prometheus.nix
|
||||
../../common/fragments/soju.nix
|
||||
../../common/fragments/sops.nix
|
||||
../../common/fragments/storage.nix
|
||||
../../common/fragments/vsftpd.nix
|
||||
|
|
|
|||
Loading…
Reference in New Issue