From 81c93a05df643268215739a94e99b8598b52b7ca Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 25 Nov 2023 15:51:43 +0100 Subject: [PATCH] feat: add host header --- servers/kid/docker-compose.d/custom/nginx/conf.d/takahe.conf | 3 ++- servers/kid/docker-compose.d/docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/kid/docker-compose.d/custom/nginx/conf.d/takahe.conf b/servers/kid/docker-compose.d/custom/nginx/conf.d/takahe.conf index 495ac78..47e9b9b 100644 --- a/servers/kid/docker-compose.d/custom/nginx/conf.d/takahe.conf +++ b/servers/kid/docker-compose.d/custom/nginx/conf.d/takahe.conf @@ -1,8 +1,9 @@ server { listen 80; - server_name takahe.ixvd.net; + server_name takahe.ixvd.net on.ixvd.net; location / { + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; diff --git a/servers/kid/docker-compose.d/docker-compose.yml b/servers/kid/docker-compose.d/docker-compose.yml index 6b6f96a..ddf9493 100644 --- a/servers/kid/docker-compose.d/docker-compose.yml +++ b/servers/kid/docker-compose.d/docker-compose.yml @@ -9,7 +9,7 @@ services: - takahe # it will not start properly without environment: CERTBOT_EMAIL: "webmaster@ixvd.net" - CERTBOT_DOMAINS: "kid.ixvd.net,fedi.ixvd.net,matrix.ixvd.net,matrix.neo.ixvd.net,cinny.ixvd.net,search.ixvd.net,pad.ixvd.net,sandbox.pad.ixvd.net,bin.ixvd.net,takahe.ixvd.net,takahemedia.ixvd.net" + CERTBOT_DOMAINS: "kid.ixvd.net,fedi.ixvd.net,matrix.ixvd.net,on.ixvd.net,matrix.neo.ixvd.net,cinny.ixvd.net,search.ixvd.net,pad.ixvd.net,sandbox.pad.ixvd.net,bin.ixvd.net,takahe.ixvd.net,takahemedia.ixvd.net" volumes: - /srv/certbot/data:/etc/letsencrypt - /srv/certbot/other/www:/var/www/certbot