road to swarm - fix race condition on initial configuration

This commit is contained in:
bunkerity
2021-03-14 16:50:08 +01:00
parent 0d3da03534
commit 6a714e2ece
7 changed files with 130 additions and 53 deletions

View File

@@ -1,6 +1,10 @@
local M = {}
local api_list = {}
api_list["^/ping$"] = function ()
return true
end
api_list["^/reload$"] = function ()
return os.execute("/usr/sbin/nginx -s reload") == 0
end