mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 04:25:24 -04:00
DOMException: The operation is insecure on login #56
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jhall1990 on GitHub (Apr 23, 2024).
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!
@kbalt commented on GitHub (Apr 26, 2024):
Hey, I had the same problem until I noticed this comment in the README
When I configured using the linked
Revolt.tomland mounted it into theapiandeventscontainer it worked.@nssassassin commented on GitHub (Jun 13, 2024):
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?
@fvlasie commented on GitHub (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!
@Rushmore75 commented on GitHub (Jul 15, 2024):
@fvlasie basically you'll need to download this file, configure it the same as the .env file. Then add the lines:
to both the
apiandeventscontainer in the Docker Compose file.@insertish commented on GitHub (Oct 2, 2024):
README updated to include new setup information