Switch reload from post to get
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 35s

This commit is contained in:
jknapp 2025-03-09 11:07:21 -07:00
parent 2492eab708
commit cb58f1d762

View File

@ -151,7 +151,7 @@ def regenerate_conf():
'error': str(e)
}), 500
@app.route('/api/reload', methods=['POST'])
@app.route('/api/reload', methods=['GET'])
def reload_haproxy():
if is_process_running('haproxy'):
subprocess.run(['echo', '"reload"', '|', 'socat', 'stdio', '/tmp/haproxy-cli'])