Closed anioji closed 5 days ago
You need to strip the /api
prefix when passing requests to the proxy.
See https://github.com/revoltchat/self-hosted/blob/master/Caddyfile#L3.
(I don't know how nginx handles this but I can see in your logs that it is not stripping the path.)
What happened?
When i try register/login API-Server sending me 404 code
Error
Client
API
Dot ENV
Revolt.toml
NGINX?!?!
Interdiction
I ignore Caddy - proxy because in my network with more self-hosted services entry point is nginx. Caddy send 301 when nginx proxing req on http If write https://... we get 502 code ... Nginx cant proxy to https services
Client -> Nginx -> Caddy -> 301 https://revolt.my_domain.com -> Nginx -> Client -> Nginx -> Caddy -> 301 https://revolt.my_domain.com ... Cycle
Settings
I opened ports in docker-compose and add to /etc/hosts local-address of my VM in my ingress server