The origin hubs repo is always updating and we are running on different server so it comes with different kind of error.
Sometimes the error I face doesn't necessarily mean you also face it.
- 502 server communication error in hubs admin like this issue
Ok, let's give try to solve this.
The problem is an API call to this route
/api/ita/admin-info
and other with slash ita /ita
if we check where is the code in the reticulum which handles that
open the router.ex
ita API call the RetWeb.Plugs.ItaProxy
if you in vs code you can command+click / ctrl+click for find the function is called.
scope "/api/postgrest" do
pipe_through([:secure_headers, :auth_required, :admin_required, :proxy_api])
forward("/", RetWeb.Plugs.PostgrestProxy)
end
Thanks to the contributor that give me a clue about the port 3000
its a PostgREST
Thanks to daniel, Give me info about Running PostgREST locally
This problem is related to number 1 above. We don't need CORS_PROXY_SERVER
so set it with an empty string
and make condition like this picture bellow
Edit Api.js
I got error like this
Then add rule prefetch-src
like this.
It because nginx
Open up the nginx configuration file
sudo nano /etc/nginx/nginx.conf
add this client_max_body_size
to the http section
http {
# other line...
client_max_body_size 100M;
}
Then restart nginx
sudo systemctl restart nginx
for more detail see this article
I install this project on server in china. alibaba elastic compute service
then i got that error when trying to run Spoke and hubs admin.
just remove process.env.HOST_IP ||
like picture above.
and leave "0.0.0.0"
thanks to this
this._mediasoupRouter._transports.size
Change the prod command in package.json
it because MEDIASOUP_LISTEN_IP
. set value with 0.0.0.0
MEDIASOUP_LISTEN_IP=0.0.0.0 MEDIASOUP_ANNOUNCED_IP=123.xxx.xxx.xxx HTTPS_CERT_FULLCHAIN=/etc/letsencrypt/live/example.com/fullchain.pem HTTPS_CERT_PRIVKEY=/etc/letsencrypt/live/example.com/privkey.pem DOMAIN=example.com node index.js