From b2fc20fe8080e4c083b08354afdce287a91de0b7 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 13 Jan 2024 00:35:13 +0100 Subject: nomsable webring (just messing around for now) --- flora/services/nginx.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'flora/services/nginx.nix') diff --git a/flora/services/nginx.nix b/flora/services/nginx.nix index 7c792ba..1d95255 100644 --- a/flora/services/nginx.nix +++ b/flora/services/nginx.nix @@ -20,5 +20,16 @@ forceSSL = true; locations."/".root = ../../pkgs/nomsing; }; + virtualHosts."webring.noms.ing" = { + enableACME = true; + forceSSL = true; + locations."~ (.*)".extraConfig = '' + fastcgi_pass unix:${config.services.fcgiwrap.socketAddress}; + include ${pkgs.nginx}/conf/fastcgi_params; + fastcgi_param SCRIPT_FILENAME ${lib.getExe pkgs.nomsring}; + fastcgi_param PATH_INFO $1; + ''; + }; }; + services.fcgiwrap.enable = true; } -- cgit v1.2.3