From 710a92d18cfa50643a7780cd623df82726635147 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 1 Jun 2025 23:03:30 +0200 Subject: [PATCH] mempool: improve comments --- modules/mempool.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/mempool.nix b/modules/mempool.nix index a74d513..05d0bc8 100644 --- a/modules/mempool.nix +++ b/modules/mempool.nix @@ -170,7 +170,9 @@ let include ${nbPkgs.mempool-nginx-conf}/mempool/http-language.conf; ''; - # This should be added to `services.nginx.virtualHosts..extraConfig` + # Config for static website content. + # This should be added to `services.nginx.virtualHosts..extraConfig`. + # Adapted from mempool/nginx-mempool.conf and mempool/production/nginx/location-redirects.conf staticContent = '' index index.html; @@ -189,7 +191,9 @@ let } ''; - # This should be added to `services.nginx.virtualHosts..extraConfig` + # Config for backend API. + # This should be added to `services.nginx.virtualHosts..extraConfig`. + # Adapted from mempool/nginx-mempool.conf and mempool/production/nginx/location-api.conf. proxyApi = let backend = "http://${nbLib.addressWithPort cfg.address cfg.port}"; in '' @@ -208,7 +212,7 @@ let proxy_set_header Connection "Upgrade"; # Relevant settings from `recommendedProxyConfig` (nixos/nginx/default.nix) - # (In the above api locations, this are inherited from the parent scope) + # (In the above api locations, these are inherited from the parent scope) proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;