I have cloudflare DNS sending vault. example. com to 192.168.1.xx (nginx) and then a reverse proxy sending that to 127.20.0.3 on port 8080 which is the vaultwarden container. It resolves semi correctly as it’s going to the correct address but it’s going to http not https and keeps redirecting over and over to vault. example. com. I’m using Cloudflare API for the SSL DNS challenge.
I have tried looking everywhere and I’m not sure what is creating the loop. You can find my docker compose yml here and see my Nginx setup specifically at the bottom.
Things I’ve tried:
URL scheme of http and https.
Setting the vaultwarden domain environment variable to vault. example. com, http:// vault. example. com, and https:// vault. example. com.
Making sure both Nginx Proxy Manager and Vaultwarden are on the same network with the bridge driver
Checking DNS lookup to see if it goes to the right place (it does)
Changing the vaultwarden port to 8080:443

