Closed pitininja closed 2 years ago
You need to proxy to localhost:5000, localhost:8000 and etc then change the urls in the .env file to your domain urls as the urls in the .env file are used to set the locations of where the client tries to get the data from. Look at this file for an example nginx config.
I have a working Revolt configuration with nginx in my repo jim3692/self-hosted EDIT: I haven't added january yet
.env
file is used by the server to provide the client with the information it needs to connect to Revolt, hence it needs to be your public endpoints there.
The default configuration is intended for running the stack on the same machine.
Thank you very much for your answers everyone, it helped me a lot!
I did pretty much like in the example provided by @jim3692 and it works fine 👍
Is it okay (from a security point of view) to publicly expose all these services on my server?
Also (forgive me as this is off topic) is it possible to target my self hosted server when using the desktop application?
Deploying you own VPN to connect to your server would be much safer, but I don't think it's worth it.
For the desktop application, you need to change the domain in config.ts and rebuild the app.
Perfect, many thanks again sir 👍
Assuming this was fixed, closing.
Is it okay (from a security point of view) to publicly expose all these services on my server?
There shouldn't be any harm in theory, although:
ufw
.
Hello everyone,
Thanks for this project it's awesome and I hope it's gonna grow big.
I'm trying to deploy Revolt on my personal server. To do so I have deployed the Docker containers using the docker-compose on this project.
I'm trying to setup all of this behind a Nginx proxy (on my server domain, with HTTPS) but can't get it to work. For now I have a Nginx proxy that proxies
https://revolt.mydomain.com/
tohttp://local.revolt.chat:5000
but when I go to the Revolt app page, I have network errors since the client is trying to reach the backend onhttp://local.revolt.chat:8000
.Here is my
.env
file:Thanks for any help