From ad59ca4ed13e3f329a8cba9e2d009f41c564af9f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 16 Apr 2021 20:20:43 -0400 Subject: Run gmnisrv in the cloud --- Biz/Cloud/Networking.nix | 2 ++ Biz/Cloud/Web.nix | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/Biz/Cloud/Networking.nix b/Biz/Cloud/Networking.nix index 4c8e058..e14ae37 100644 --- a/Biz/Cloud/Networking.nix +++ b/Biz/Cloud/Networking.nix @@ -6,6 +6,7 @@ let http = 80; https = 443; sabten = 8080; + gemini = 1965; }; in { networking = { @@ -15,6 +16,7 @@ in { ports.http ports.https ports.sabten + ports.gemini ]; }; nameservers = [ diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 74fc27e..bc0d921 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -6,6 +6,21 @@ let in { services = { + gmnisrv = { + enable = true; + settings = { + listen = "0.0.0.0:1965 [::]:1965"; + ":tls" = { store = "/var/lib/gmnisrv"; }; + "bsima.me" = { + "root" = "/www/ben/public"; + }; + "simatime.com" = { + "root" = "/www/simatime.com/public"; + "cgi" = "on"; + }; + }; + }; + nginx = { enable = true; recommendedGzipSettings = true; -- cgit v1.2.3