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

How to edit Revolt.toml on Docker? #87

Closed
fvlasie opened this issue Jun 25, 2024 · 5 comments
Closed

How to edit Revolt.toml on Docker? #87

fvlasie opened this issue Jun 25, 2024 · 5 comments

Comments

@fvlasie
Copy link

fvlasie commented Jun 25, 2024

I can't find the Revolt.toml file in any of the docker containers. Does anyone know how to edit Revolt.toml on a docker deployment? Thank you!

Originally posted by @fvlasie in #82 (comment)

@fvlasie
Copy link
Author

fvlasie commented Jun 25, 2024

I am trying to solve the problem of url: "ws://local.revolt.chat/ws"
showing in console.

@liqingyou
Copy link

same

@jquiaios
Copy link

I had the same problem and here is how I could make it work.

You need to download the file Revolt.toml and put it at the same level as the docker-compose.yml file.
If you host revolt on an external server, you need to modify your Revolt.toml file to adapt all your URLs.

After that, you modify the docker-compose,yml file to add this Revolt.toml file as a volume for both containers api and events, something like this:

# API server (delta)
api:
  image: ghcr.io/revoltchat/server:latest
  env_file: .env
  depends_on:
    - database
    - redis
    - caddy
  restart: always
  volumes:
    - ./Revolt.toml:/Revolt.toml

# Events service (quark)
events:
  image: ghcr.io/revoltchat/bonfire:latest
  env_file: .env
  depends_on:
    - database
    - redis
    - caddy
  restart: always
  volumes:
    - ./Revolt.toml:/Revolt.toml

Then you docker compose up -d to restart those two containers, and you should be good.

@fvlasie
Copy link
Author

fvlasie commented Jul 6, 2024

Thank you very much for your help. I tried what you recommended but I just get a blank page when accessing the server URL through the browser.

[root@server revolt]# curl -v localhost
* Rebuilt URL to: localhost/
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 80 (#0)
> GET / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.61.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: Caddy
< Date: Sat, 06 Jul 2024 03:30:51 GMT
< Content-Length: 0
< 
* Connection #0 to host localhost left intact

@fvlasie
Copy link
Author

fvlasie commented Jul 6, 2024

Sorry, I was being dumb! I did not set the custom domain in .env. It is all working now!

Thanks @jquiaios You are a wonderful person! :)

@fvlasie fvlasie closed this as completed Jul 6, 2024
@github-project-automation github-project-automation bot moved this from 🆕 Untriaged to ✅ Done in Revolt Project Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants