nixos-dotfiles
nixos-dotfiles
https://git.tonybtw.com/nixos-dotfiles.git
git://git.tonybtw.com/nixos-dotfiles.git
Updated znc.nix and erc bouncer
Diff
diff --git a/config/temacs/config.el b/config/temacs/config.el
index 9ba0ced..3944508 100644
--- a/config/temacs/config.el
+++ b/config/temacs/config.el
@@ -179,9 +179,9 @@
'(("libera.chat" "#technicalrenaissance")))
(defun my/erc-connect-libera ()
- "Connect to Libera.Chat via ERC."
+ "Connect to Libera.Chat via ZNC bouncer."
(interactive)
- (erc-tls :server "irc.libera.chat"
+ (erc-tls :server "znc.tonybtw.com"
:port 6697
:nick "tonybtw"
- :user "tony"))
+ :user "tonybtw/libera"))
diff --git a/server/znc.nix b/server/znc.nix
index a7367a6..59ce54c 100644
--- a/server/znc.nix
+++ b/server/znc.nix
@@ -8,15 +8,15 @@
config = {
SSLCertFile = "/var/lib/acme/znc.tonybtw.com/full.pem";
LoadModule = [ "webadmin" "adminlog" ];
- Listener.irc = {
+ Listener.l = {
Port = 6697;
SSL = true;
};
- Listener.web = {
+ Listener.http = {
Port = 6680;
SSL = false;
- Web = true;
- IRC = false;
+ AllowWeb = true;
+ AllowIRC = false;
};
User.tony = {
Admin = true;
@@ -46,6 +46,10 @@
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:6680";
+ extraConfig = ''
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ '';
};
};