From ae36b98fd92b3fd4142c1ef8f121b4a0d127a941 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 8 Jul 2022 04:37:05 +0000 Subject: [PATCH] post(caddy): remote_addr replaced with remote_ip + remote_port - https://github.com/caddyserver/caddy/releases/tag/v2.5.0 --- source/_posts/caddy-nixos-part-3.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/_posts/caddy-nixos-part-3.md b/source/_posts/caddy-nixos-part-3.md index 1fa0126..b88764a 100644 --- a/source/_posts/caddy-nixos-part-3.md +++ b/source/_posts/caddy-nixos-part-3.md @@ -2,7 +2,7 @@ title: "Setup Caddy as a reverse proxy on NixOS (Part 3: Caddy)" excerpt: "Part 3: Configure Caddy" date: 2020-03-14 -updated: 2021-07-16 +updated: 2022-07-08 tags: - server - linux @@ -12,7 +12,7 @@ tags: series: true --- -> 9 Nov 2020: Updated to Caddy 2.1 syntax. Refer to {% post_link caddy-upgrade-v2-proxy 'this article' %} for upgrade guide. +> 8 Jul 2022: Updated to Caddy 2.5 syntax. In this segment, I show you how I set up this website (mdleom.com) to reverse proxy to curben.netlify.app using Caddy on NixOS (see above diagram). If you're not using NixOS, simply skip to the [Caddyfile](#Caddyfile) section. @@ -431,7 +431,8 @@ Since I also set up reverse proxy for {% post_link tor-hidden-onion-nixos 'Tor O time_format iso8601 } fields { - request>remote_addr delete + request>remote_ip delete + request>remote_port delete request>headers>CDN-Loop delete request>headers>CF-Cache-Status delete request>headers>CF-Connecting-IP delete