I'm making a vpn service that can be controlled through admin web page.
So I have a web page that consists of front-end page and a backend API + DB.
In this admin web page, I can execute a vpn binary at my server by clicking a button or submitting a form. And also set some configurations before I start my vpn-service.
And this configurations needs to be written in file which then passed to vpn binary by an argument(params).
I'm kinda confused because in web app, I store configurations in DB but then it needs to be copied to the config file for a binary to receive. It looks like violating SSOT(Single Source of Truth). Hard to manage its sync status.
How should I manage its config in this situation? Maybe I can skip DB and just use file as if it were DB. Or maybe when I start vpn, always overwrite config with current DB values so that it never matters?