From f00602825bde38d76cf1fa5bf52794153b53af06 Mon Sep 17 00:00:00 2001 From: kity Date: Wed, 30 Oct 2024 18:35:10 +0100 Subject: [PATCH 1/2] added ssh key --- hosts/sisyphe/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/sisyphe/configuration.nix b/hosts/sisyphe/configuration.nix index 857b665..425b8c5 100644 --- a/hosts/sisyphe/configuration.nix +++ b/hosts/sisyphe/configuration.nix @@ -52,6 +52,7 @@ openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA8sdToNavEQv7PTMJ97HIGM6UlChwGS3x9O8hFilzui harryh@ik.me" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHjz5MUSmc1ahtUJWuvzG7PHH432nx6a0Nj2zfxt3oTP geekcat@protonmail.com" ]; initialHashedPassword = "$y$j9T$H0D6NpMw1EU.oDhbMWrwL.$wDGGBKKGQdzeDRTzq0gWhoLdyUpQ2w6PMmGl.nuQ11/"; From 259aa1dd5e08beebb988c42e8b0f3ae75c1dfdef Mon Sep 17 00:00:00 2001 From: kity Date: Thu, 31 Oct 2024 15:19:25 +0100 Subject: [PATCH 2/2] more irc config --- features/server/services/nextcloud.nix | 2 +- hosts/dionysos/configuration.nix | 33 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/features/server/services/nextcloud.nix b/features/server/services/nextcloud.nix index 1dfa2b1..a1dd0ed 100644 --- a/features/server/services/nextcloud.nix +++ b/features/server/services/nextcloud.nix @@ -97,7 +97,7 @@ environment.systemPackages = let - php = pkgs.php.buildEnv { extraConfig = "memory_limit = 2G"; }; + php = pkgs.php.buildEnv { extraConfig = "memory_limit = 4G"; }; in [ php diff --git a/hosts/dionysos/configuration.nix b/hosts/dionysos/configuration.nix index 56a94e0..9a62620 100644 --- a/hosts/dionysos/configuration.nix +++ b/hosts/dionysos/configuration.nix @@ -30,4 +30,37 @@ in users.users.${username}.initialHashedPassword = "$y$j9T$s4isXqWcg4N8TEPjmj0fD/$zog2cpUwstnvwDnQsFmH3br/WAeD2Uu/L7ePr00cKkA"; environment.variables.EDITOR = "nvim"; + + services.nginx = { + enable = true; + recommendedGzipSettings = true; + recommendedOptimisation = true; + recommendedProxySettings = true; + # You'd think this is a good idea, but Safari doesn't support 1.3 on websockets yet from my testing in 2020. If one is only using Chrome, consider it. + # sslProtocols = "TLSv1.3"; + virtualHosts = { + "irc.hypervirtual.world" = { + forceSSL = true; + enableACME = true; + locations."^~ /weechat" = { + proxyPass = "http://127.0.0.1:9000/weechat/"; + proxyWebsockets = true; + }; + locations."/" = { + root = pkgs.glowing-bear; + }; + }; + }; + + services.oauth2.proxy = { + enable = true; + email.addresses = '' + # your email goes here for authorization + ''; + nginx.virtualhosts = [ + "irc.hypervirtual.world" + ]; + clientID = ""; + keyFile = ""; + }; }