PowerDNS / weakforced

Anti-Abuse for servers at authentication time
GNU General Public License v3.0
124 stars 33 forks source link

Fix upload warnings on startup and syncDone issue #356

Closed neilcook closed 2 years ago

neilcook commented 2 years ago

The drogon HTTP framework we now use for the REST API also allows file uploads, which we don't use. Unfortunately, by default it tries to create a bunch of directories in the working directory, which is usually not writable (e.g. /etc/wforce), as described in #355.

This PR modifies the drogon upload directory so that the warnings do not occur.

This PR also ensures that before the syncDB functions are called, that the webserver is running, otherwise it sleeps until the webserver is running. This fixes the issue described in #358.