-
Hi all, I'm able to run the application locally without any issues. Everything works as expected using docker compose, including the API, database, and frontend. However, I'm having trouble making the application accessible externally through Cloudflare Tunnel and Zero Trust. My setup:
Local access (LAN or via VPN) works perfectly (I can log in to MyFin without issues). The problem: But when I try to log in I always get the error: "Invalid credentials. Try again!" This happens regardless of the credentials used. Has anyone successfully run this application behind a Cloudflare tunnel with Zero Trust? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @FilipeAb, Just to confirm — are you able to access the API endpoint from the same browser you're using to access the frontend? You can test this by opening the API base URL directly in your browser (e.g., https://api.myfininstance.xyz). If everything is set up correctly, you should see the following JSON response: {
"info": "MyFin API"
} If that's the case, the API is publicly reachable — which is a good sign. Next, to help troubleshoot the login issue, could you please share the network logs from your browser’s developer tools during a login attempt? Specifically, I'm interested in the request/response details for the POST /auth/ call. This will help us identify whether the request is reaching the API and if the session or cookies are being handled correctly. |
Beta Was this translation helpful? Give feedback.
I believe they may have intentionally designed it that way
However, if you're not fully comfortable exposing the API this way, an alternative approach would be to use a local reverse proxy setup like Nginx Proxy Manager.
Generate SSL certificates for *.local.domain.com.
Add "*.local" as an A record in your Cloudflare DNS pointing to the IP of your Nginx Proxy Manager host.
Set up internal routing rules with Nginx Proxy Manager.
There are lots of tutorials on youtube on how to HTTPS/SSL local traffic using NPM and Cloudflare t…