Closed Jhall1990 closed 1 day ago
Hey, I had the same problem until I noticed this comment in the README
❗ Important: configuration strategy has changed but this guide is out of date TL;DR mount Revolt.toml at /Revolt.toml for both api and events. Proper documentation will follow in due time.
When I configured using the linked Revolt.toml
and mounted it into the api
and events
container it worked.
Hey, I had the same problem until I noticed this comment in the README
❗ Important: configuration strategy has changed but this guide is out of date TL;DR mount Revolt.toml at /Revolt.toml for both api and events. Proper documentation will follow in due time.
When I configured using the linked
Revolt.toml
and mounted it into theapi
andevents
container it worked.
Would you be able to give an example of where I'm supposed to do this, in the docker-compose? Do I add a volume?
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!
@fvlasie basically you'll need to download this file, configure it the same as the .env file. Then add the lines:
volumes:
- ./Revolt.toml:/Revolt.toml
to both the api
and events
container in the Docker Compose file.
README updated to include new setup information
What happened?
I'm trying to deploy a revolt instance with HTTPS. I'm able to access the landing page and registration page. I create an account then when I try to login I get the "It's time to choose a username page" I enter the username I want and click "Looks good!" and that's when I see the DOMException in the browser console.
I saw a similar issue here: https://github.com/revoltchat/self-hosted/issues/10 which mentioned making sure that https:// is prefixed on all URLs in the env as well as wss:// for the web socket, which I have done.
Redacted env file:
I was checking each of the endpoints that's exposed in the Caddyfile and they all work, but noticed that when I go to https://\<my-domain-name>/api I get the following (redacted) JSON which does not match what's in my env file.
Here is my Caddyfile:
I tried tearing down all the volumes and deleting the data directory and redeploying but that didn't change anything.
One other thing is that there are no errors on any of the containers in the docker compose (seems like the error is only client side)
Anything obvious here that I have wrong?
If you need any other information please let me know
Thanks!