ubergeek77 / Lemmy-Easy-Deploy

Deploy Lemmy the easy way!
MIT License
133 stars 14 forks source link

Too many redirects error #85

Closed 3nderall closed 7 months ago

3nderall commented 7 months ago

Did you check the FAQ & Troubleshooting section for answers to common questions and issues?

Yes, I have tried both the cloudflare api tokens (on full (strict)) and neither worked

Describe the issue

Going to my instance (that I have just deployed) gives a too many redirects error. I have followed the steps in the faq and I am still getting an error. I am accessing the instance through nginx proxy manager.

Diagnostic Information

Run ./deploy.sh -d and paste the output below:


Detected runtime: docker (Docker version 25.0.0, build e758fe5)
Detected compose: docker compose (Docker Compose version v2.24.1)
Runtime state: OK

==== System Information ==== OS: Linux KERNEL: 6.1.0-rpi7-rpi-v8 (aarch64) HOSTNAME: OK SHELL: bash MEMORY: total used free shared buff/cache available Mem: 7.8Gi 713Mi 599Mi 50Mi 6.6Gi 7.1Gi Swap: 99Mi 0B 99Mi

DISTRO:

PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)" NAME="Raspbian GNU/Linux" VERSION_CODENAME=bookworm

==== Lemmy-Easy-Deploy Information ==== Version: 1.3.3

IMAGE CREATED STATUS lemmy-easy-deploy-proxy 2 minutes ago Up 2 minutes ghcr.io/ubergeek77/lemmy-ui:0.19.2 2 minutes ago Up 2 minutes (healthy) ghcr.io/ubergeek77/lemmy:0.19.2 2 minutes ago Up 2 minutes postgres:15-alpine 2 minutes ago Up 2 minutes asonix/pictrs:0.4.7 2 minutes ago Up 2 minutes

Integrity: 2cd5fe103e2d1d703edd5b2368a302e2aa56f005044b5aa182dfcb50e4803b02 deploy.sh 92c95dfc886792b8df2e9fffb540fc71a35c3bc6fd6c7662134da1545a79457a ./templates/Caddy-Dockerfile.template c1202e70662dd2228da36a35a0f38ec8fc81bec8964d7315d02e8671a58dd7d7 ./templates/Caddyfile.template 2537678c7971df36c1ed95f4228d3cfcb15bb4a28a60d939eaf8dd75b5d64a36 ./templates/cloudflare.snip c494a610bcb4cd1cfc0a4fe4fb0f6d437b2a84a0ad1625daee240e6dd6f1c910 ./templates/compose-email-volumes.snip c9cb4c5fee12930e17798a02ae1bd12e2dc69e149a394c24511bc9d4e6b776d4 ./templates/compose-email.snip 09b990908d667411c9089b6848cf63d30ad3e76b1e560747833c3cc241ab95a4 ./templates/docker-compose.yml.template 1c202b1b6e87c65b2fcda6035c9fe3f8631d76662907ffd38f24b14686e30647 ./templates/lemmy-email.snip c834cdce9eaf77f38155b404724fdfe66845575386ee516987452aa715642a6f ./templates/lemmy.hjson.template

Custom Files: No custom files

==== Settings ==== CLOUDFLARE: Yes CADDY_DISABLE_TLS: false CADDY_HTTP_PORT: 7061 CADDY_HTTPS_PORT: 7060 LEMMY_TLS_ENABLED: true ENABLE_EMAIL: false SMTP_PORT: 25 ENABLE_POSTFIX: false POSTGRES_POOL_SIZE: 5

==== Generated Files ==== Deploy Version: 0.19.2;0.19.2

total 40K drwxr-xr-x 2 0 0 4.0K Jan 21 16:22 caddy -rw-r--r-- 1 0 0 80 Jan 21 16:36 caddy.env -rw-r--r-- 1 0 0 1.7K Jan 21 16:36 docker-compose.yml drwxr-xr-x 2 0 0 4.0K Jan 21 16:08 lemmy-ui-themes -rw-r--r-- 1 0 0 50 Jan 21 16:06 lemmy.env -rw-r--r-- 1 0 0 463 Jan 21 16:36 lemmy.hjson -rw-r--r-- 1 0 0 49 Jan 21 16:06 pictrs.env -rw-r--r-- 1 0 0 33 Jan 21 16:36 postfix.env -rw-r--r-- 1 0 0 51 Jan 21 16:06 postgres.env -rw-r--r-- 1 0 0 14 Jan 21 16:36 version

airjer commented 7 months ago

You have to create a token with the "Edit Zone DNS" template.

3nderall commented 7 months ago

I'm still getting the error

3nderall commented 7 months ago

I fixed it by setting CADDY_DISABLE_TLS=true This is only safe because I have nginx doing https not caddy so if someone else has this problem and isn't using nginx proxy manager then you need a different solution