mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 04:25:24 -04:00
DOMException: The operation is insecure #5
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 @Orangian on GitHub (Sep 30, 2021).
Just self hosted an instance, but I can't login after onboarding as the firefox console always spits out:
Now, I have no clue what this means, can anyone help?
@Orangian commented on GitHub (Oct 1, 2021):
Possibly similar to livewire/livewire#1529, could be an issue with the fact that the Revolt server is running on HTTP but being proxied as HTTPS. In that case, is there anything I can do to fix this, or is this an issue on Revolt's end?
@insertish commented on GitHub (Oct 10, 2021):
You should be exposing all services as either in a HTTP or HTTPS context, you can't mix and match except when going from HTTP -> HTTPS (insecure client origin to secure server, but you lose features this way).
@Orangian commented on GitHub (Oct 13, 2021):
Sorry, how would I go about doing this? I have set all services in the .env file to be accessible under HTTPS, however, when I attempt to actually connect to them, the revolt server itself is running under HTTP.
For instance, exposing the REVOLT_APP_URL under https://192.168.200.47:5000 nets me an SSL certificate length error when actually connecting there (as it is attempting to serve HTTP requests over an HTTPS connection), while connecting under http://192.168.200.47:5000 gets me a successful connection, but without working logins.
@insertish commented on GitHub (Oct 14, 2021):
Specifying
https:does not change anything, these variables are used by the client to connect to the server, the server doesn't actually do much else with them.You need to configure a reverse proxy pointed at each service which allows it to run over HTTPS.
@Orangian commented on GitHub (Oct 14, 2021):
Ah, I see there has been a miscommunication. As I attempted to state in an earlier comment, every service is proxied through apache over HTTPS with a valid certificate, and the error still persists.
@nadiamoe commented on GitHub (Nov 30, 2021):
It might be possible that you changed all URLs in the config file from
httptohttpsbut, like me, forgot to change the websocket schema fromwstowss. That fixed the error for me :)@Orangian commented on GitHub (Dec 3, 2021):
That fixed it, thanks! (As far as I can tell, mongo is refusing to work right now, but I'd expect to get that error beforehand.)