Adguard + Nginx-Proxy configuration reddit / selfhosted ---------------------------------------------------------------------- Theviki20110 ยท 2023-12-22 15:40 Hi there, It's my first time in selfhosted world so I'm sorry for any (probable) mistakes. I recently bought a VPS to set up a personal DNS Server (I'm going to use Adguard Home container). To do that I've already bought a domain (cloudflare) and I've managed DNS records as follow (hopefully in the correct way): |Type|Name|Content| |:-|:-|:-| |A|mydomain.com|1.2.3.4| |CNAME|www|mydomain.com| I don't want to expose AdguardHome directly so I've decided to use Nginx-proxy container. Since I'm going to use DNS over HTTPS I've already requested an SSL certificate and I've used acme-companion container to handle its automatic renewal. Now things get complicated. My docker compose file is something like that: `services:` `nginx-proxy:` `image: nginxproxy/nginx-proxy` `restart: unless-stopped` `container_name: nginx-proxy` `ports:` `- 80:80` `- 443:443` `volumes:` `- ./path/certs:/etc/nginx/certs:rw` `- ./path/vhost:/etc/nginx/vhost.d` `- ./path/html:/usr/share/nginx/html` `- ./path/nginx_logs/:/var/log/nginx` `- /var/run/docker.sock:/tmp/docker.sock:ro` `environment:` `- ENABLE_IPV6=true` `acme-companion:` `image: nginxproxy/acme-companion` `restart: unless-stopped` `container_name: nginx-proxy-acme` `volumes_from:` `- nginx-proxy` `volumes:` `- ./path/acme:/etc/acme.sh` `- /var/run/docker.sock:/var/run/docker.sock:ro` `environment:` `- DEFAULT_EMAIL=myemail` `adguardhome:` `container_name: adguardhome` `image: adguard/adguardhome` `restart: unless-stopped` `volumes:` `- './path/settings/data:/root/adguardhome/work'` `- './path/settings/conf:/root/adguardhome/conf'` `environment:` `- VIRTUAL_HOST=www.mydomain.com` `- LETSENCRYPT_HOST=www.mydomain.com` `- VIRTUAL_PORT=3000` When I try to go on [www.mydomain.com](https://www.mydomain.com) (after docker compose up -d command) the browser sends me 'ERR\_TOO\_MANY\_REDIRECTS' error and I don't know how to fix this. Lastly, to give you a complete description, I'm using Tailscale on my VPS and I would like to set up Headscale. Thanks for your help.