bug: ERR_TOO_MANY_REDIRECTS with fresh install #90

Closed
opened 2026-02-16 12:51:24 -05:00 by yindo · 1 comment
Owner

Originally created by @maxi1134 on GitHub (Feb 5, 2025).

What happened?

I installed by following each step and then directed my domain name to my IP.
From there it is passed to a NGINX Proxy manager server who redirects it to the port 80 of the local RevoltChat Virtual machine.

Everything seems to be running properly:

root@revoltchat:/home/maxi1134/revolt# docker compose up -d
[+] Running 12/12
 ✔ Container revolt-caddy-1          Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-web-1            Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-redis-1          Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-rabbit-1         Healthy                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.5s
 ✔ Container revolt-database-1       Healthy                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.5s
 ✔ Container revolt-january-1        Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-minio-1          Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-createbuckets-1  Started                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.2s
 ✔ Container revolt-autumn-1         Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-events-1         Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-api-1            Running                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0.0s
 ✔ Container revolt-pushd-1          Started 

My .env file:

HOSTNAME=:80
REVOLT_PUBLIC_URL=https://chat.MYDOMAIN.ca/api
REVOLT_APP_URL=http://chat.MYDOMAIN.ca
REVOLT_EXTERNAL_WS_URL=wss://chat.MYDOMAIN.ca/ws

My Revolt.toml:


[hosts]
app = "https://chat.MYDOMAIN.ca"
api = "https://chat.MYDOMAIN.ca/api"
events = "wss://chat.MYDOMAIN.ca/ws"
autumn = "https://chat.MYDOMAIN.ca/autumn"
january = "https://chat.MYDOMAIN.ca/january"

[pushd.vapid]
private_key = "KEY"
public_key = "KEY"

[files]
encryption_key = "KEY"

My caddy section in compose file:

  caddy:
    image: caddy
    restart: always
    env_file: .env.web
    ports:
      - "1234:80"
      - "443:443"

My NGINX config:

Image

Anyone had this issue?

Originally created by @maxi1134 on GitHub (Feb 5, 2025). ### What happened? I installed by following each step and then directed my domain name to my IP. From there it is passed to a NGINX Proxy manager server who redirects it to the port 80 of the local RevoltChat Virtual machine. Everything seems to be running properly: ``` root@revoltchat:/home/maxi1134/revolt# docker compose up -d [+] Running 12/12 ✔ Container revolt-caddy-1 Running 0.0s ✔ Container revolt-web-1 Running 0.0s ✔ Container revolt-redis-1 Running 0.0s ✔ Container revolt-rabbit-1 Healthy 0.5s ✔ Container revolt-database-1 Healthy 0.5s ✔ Container revolt-january-1 Running 0.0s ✔ Container revolt-minio-1 Running 0.0s ✔ Container revolt-createbuckets-1 Started 0.2s ✔ Container revolt-autumn-1 Running 0.0s ✔ Container revolt-events-1 Running 0.0s ✔ Container revolt-api-1 Running 0.0s ✔ Container revolt-pushd-1 Started ``` My .env file: ``` HOSTNAME=:80 REVOLT_PUBLIC_URL=https://chat.MYDOMAIN.ca/api REVOLT_APP_URL=http://chat.MYDOMAIN.ca REVOLT_EXTERNAL_WS_URL=wss://chat.MYDOMAIN.ca/ws ``` My Revolt.toml: ``` [hosts] app = "https://chat.MYDOMAIN.ca" api = "https://chat.MYDOMAIN.ca/api" events = "wss://chat.MYDOMAIN.ca/ws" autumn = "https://chat.MYDOMAIN.ca/autumn" january = "https://chat.MYDOMAIN.ca/january" [pushd.vapid] private_key = "KEY" public_key = "KEY" [files] encryption_key = "KEY" ``` My caddy section in compose file: ``` caddy: image: caddy restart: always env_file: .env.web ports: - "1234:80" - "443:443" ``` My NGINX config: ![Image](https://github.com/user-attachments/assets/a5814e20-d7e7-4346-ad9a-6ce5791b0210) Anyone had this issue?
yindo added the bug label 2026-02-16 12:51:24 -05:00
yindo closed this issue 2026-02-16 12:51:24 -05:00
Author
Owner

@maxi1134 commented on GitHub (Feb 5, 2025):

I think I found my solution.

This section of the guide:

# .env
- HOSTNAME=http://local.revolt.chat
+ HOSTNAME=:80

Applies to .env.web not .env

After setting:
HOSTNAME=:80 in .env.web, it let me see the login page

@maxi1134 commented on GitHub (Feb 5, 2025): I think I found my solution. This section of the guide: ``` # .env - HOSTNAME=http://local.revolt.chat + HOSTNAME=:80 ``` Applies to `.env.web` not `.env` After setting: `HOSTNAME=:80` in `.env.web`, it let me see the login page
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/self-hosted#90