Switch reload from post to get
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 35s
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 35s
This commit is contained in:
parent
2492eab708
commit
cb58f1d762
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user