From 0e6dd4308d4d13906ddccb3f8f5ea985e7af9c12 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Thu, 27 Feb 2020 17:04:55 +0000 Subject: [PATCH] fix(nixos-1): dedup array config --- source/_posts/caddy-nixos-part-1.md | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/source/_posts/caddy-nixos-part-1.md b/source/_posts/caddy-nixos-part-1.md index 11a82b2..9501ad4 100644 --- a/source/_posts/caddy-nixos-part-1.md +++ b/source/_posts/caddy-nixos-part-1.md @@ -244,19 +244,15 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has services.tor = { enable = false; enableGeoIP = false; - hiddenServices = { - proxy = { - name = "proxy"; - version = 3; - map = [ - { - port = "80"; - toHost = "[::1]"; - toPort = "8080"; - } - ]; - }; - }; + hiddenServices = [{ + name = "proxy"; + version = 3; + map = [{ + port = "80"; + toHost = "[::1]"; + toPort = "8080"; + }]; + }]; extraConfig = '' ClientUseIPv4 0