standardnotes / server

Server ecosystem for Standard Notes; fully self-hostable.
https://standardnotes.com/help/self-hosting/docker
GNU General Public License v3.0
266 stars 62 forks source link

HTTP Health check method OPTIONS #1038

Open rppala3 opened 9 months ago

rppala3 commented 9 months ago

Recently I deployed standardnotes on my home server and everything seems work fine, but I had some trouble setting up my reverse proxy facing this warning:

[WARNING] (3182) : config : Server standardnotes_ipvANY/web is DOWN, changed from server-state after a reload. 2 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.

According to HAproxy documentation, they encourage the use of OPTIONS instead of GET to perform health check. OPTIONS is the method usually best to perform server checks, HEAD and GET can also be used. If the server gets marked as down in the stats page then changing this to GET usually has the biggest chance of working, but might cause more processing overhead on the websever and is less easy to filter out of its logs.