I managed to install vikunja via docker-compose on my synology nas (i used portainer’s stacks and it was surprisingly easy for a newbie like me to follow your “Example without any proxy”)
locally, everything works fine
Now i would like to access vikunja from outside: synology has a pre-installed proxy so i connected my local vikunja 192.168.1.10:8088 to my domain vikunja_mydomain_com (like i already did with other containers) but it does not work: there is a “network error” message on the login page
Any idea how i can correct this “network error” (+ remove the register button) ?
i tried adding these env. variables but it doesn’t work :
VIKUNJA_SERVICE_FRONTENDURL: https://vikunja.mydomain.com
VIKUNJA_SERVICE_ENABLEREGISTRATION: 0
What part of Vikunja did you connect to your proxy? Frontend or API?
Because your browser actually makes the requests to the api directly, it needs to have access to it. That means you have to expose both containers, on different ports.
Once you’ve done that you need to configure the API Url in your frontend, check out this part of the docs for that.
Thanks for your swift reply but i’m not sure i understood correctly :
i created a proxy to redirect the api “192.168.1.10:3344” to a domain “api_mydomain_com”
so now both containers are exposed
i also modified the frontend container and changed VIKUNJA_API_URL to “https_api_mydomain_com/api/v1”
but i still get a network error when i try to login via the frontend “vikunja_mydomain_com”
The /api/v1/info request always delivers the correct response
Forwarding 443 from Router to Synology
Reverse proxy on synology for vi / api on 443 (HTTPS)
vi goes to frontend docker 8882 (HTTP)
api goes to api docker 3456 (HTTP)
On my computer in the browser (same network) it works fine.
With local IPs it works fine
DesktopApp won’t work (with domain)
Mobile phones work “sporadically?!”
Mobile phone in my network gives error immediately (AxiosError: Network Error)
Mobile phone from 5G loads 30sec before returning timeout (AxiosError: timeout exceeded)
On my mobile I got it to work, after chaning also the api at the top of the page to NOT having /api/v1. It somehow was not enough to update the api via the “error input field” that you have anyways… Trying the exact same thing on another mobile, didn’t work again. I always receive the AxiosError: timeout exceeded… Also the DesktopApp is not working. I’m totally clueless…
What is the correct input for the api in 0.20.2? The url with or without /api/v1?
Okay but you configured the VIKUNJA_API_URL on the frontend container to https://api.xx.net/api/v1? Is that where the api is reachable or is that https://api.xx.net:3456/api/v1?
@kolaente so the issue seem to have been the not valid certificate. I don’t know at which point the problem occurs, but obviously when the frontend tries to connect to the api and it doesn’t provide a valid certificate. As far as I can see there also isn’t a setting to disable cert checking at this specific point. Thanks for your support!