Hacker News new | ask | show | jobs
by halfdan 1240 days ago
Funny. I just stumbled upon this yesterday. The only thing that I wish to see improved is having the backend serve the frontend from the same docker container. It's a bit of a hassle to use nginx as a proxy in the docker compose setup (or in fact set all of that up on my Synology NAS).
1 comments

Initially I was also interested in this. There is the staticpath option in the backend config. You can point it to the directory of the frontend files. Theoretically, both the backend and the frontend could be served by the builtin webserver. Unfortunately, for this to work most frontend URLs must get rewritten/rerouted to /index.html and this does not seem to be implemented. Shouldn't be too complicated though.
Where did you find that option? I've never heard of any setting like that and I built the thing...
It's even documented and mentions the idea of setting it to the frontend directory: https://vikunja.io/docs/config-options/#staticpath

By the way, thanks for creating this software. I especially like the clean split between the API server and the frontend. Interaction feels almost like a local application.