Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ERR_TOO_MANY_REDIRECTS with fresh install #127

Closed
maxi1134 opened this issue Feb 5, 2025 · 1 comment
Closed

bug: ERR_TOO_MANY_REDIRECTS with fresh install #127

maxi1134 opened this issue Feb 5, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@maxi1134
Copy link

maxi1134 commented 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?

@maxi1134 maxi1134 added the bug Something isn't working label Feb 5, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Untriaged in Revolt Project Feb 5, 2025
@maxi1134
Copy link
Author

maxi1134 commented 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 maxi1134 closed this as completed Feb 5, 2025
@github-project-automation github-project-automation bot moved this from 🆕 Untriaged to ✅ Done in Revolt Project Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant