From 1971766cc231b9f693b904673d79c3dc29b811d1 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 1 Apr 2024 23:58:05 +0900 Subject: fix(blog/proxy): fix an issue where one cannot access to slash-less path # Problem Access to `https://blog.nsfisis.dev/foo/bar` was redirected to `http://127.0.0.1/foo/bar/`. # Cause Nginx inside Docker container listened to port 80, but Docker bound the port to the host's 8001 port. The reverse proxy, mioproxy, was configured to rewrite `http://127.0.0.1:8001/*` to `https://blog.nsfisis.dev/*`, which cannot handle `http://127.0.0.1:80/*`. # Solution Change the inner port that Nginx listens to to 8001. Also update mioproxy version. --- provisioning/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'provisioning/run.sh') diff --git a/provisioning/run.sh b/provisioning/run.sh index 1986a20d..cffb6683 100755 --- a/provisioning/run.sh +++ b/provisioning/run.sh @@ -13,7 +13,7 @@ export LEGO_CONF_WEBROOT="${REPO_ROOT}/letsencrypt/webroot" export LEGO_CONF_PATH="${REPO_ROOT}/letsencrypt/lego" export LEGO_CONF_DOMAINS=nsfisis.dev,blog.nsfisis.dev export GOLANG_VERSION=1.21.1 -export MIOPROXY_VERSION=v0.1.0 +export MIOPROXY_VERSION=v0.3.0 mitamae_bin_url="https://github.com/itamae-kitchen/mitamae/releases/download/${MITAMAE_VERSION}/mitamae-${MITAMAE_ARCH}.tar.gz" -- cgit v1.2.3-70-g09d2