mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 04:25:24 -04:00
Need help deploying behing proxy #10
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 @pitininja on GitHub (Oct 21, 2021).
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:5000but 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
.envfile:Thanks for any help
@Mar0xy commented on GitHub (Oct 22, 2021):
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.
@jim3692 commented on GitHub (Oct 29, 2021):
I have a working Revolt configuration with nginx in my repo jim3692/self-hosted
EDIT: I haven't added january yet
@insertish commented on GitHub (Oct 31, 2021):
.envfile 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.
@pitininja commented on GitHub (Oct 31, 2021):
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?
@jim3692 commented on GitHub (Nov 1, 2021):
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.
@pitininja commented on GitHub (Nov 1, 2021):
Perfect, many thanks again sir 👍
@insertish commented on GitHub (Jan 5, 2022):
Assuming this was fixed, closing.
There shouldn't be any harm in theory, although:
ufw.