Project

General

Profile

« Previous | Next » 

Revision 779554ce

Added by Alexis Mousset over 7 years ago

Fixes #9956: Relay apache conf does not allow accessing the api

View differences:

rudder-server-relay/SOURCES/relay-api/apache/relay-api.conf
Allow from all
</Directory>
<Files /opt/rudder/share/relay-api/relay-api.wsgi>
# Allow access from anybody
Allow from all
</Files>
<Directory /opt/rudder/share/relay-api/flask>
# WSGI parameters
rudder-server-relay/SOURCES/relay-api/relay_api/views.py
print(traceback.format_exc())
return format_error(e, API_DEBUGINFO)
@app.route('/relay-api/remote-run/all', methods=['POST'])
@app.route('/remote-run/all', methods=['POST'])
def remote_run_all():
try:
nodes = get_nodes_list(NODESLIST_FILE)
......
print(traceback.format_exc())
return format_error(e, API_DEBUGINFO)
@app.route('/relay-api/remote-run/nodes', methods=['POST'])
@app.route('/remote-run/nodes', methods=['POST'])
def remote_run_nodes():
try:
nodes = get_nodes_list(NODESLIST_FILE)
......
print(traceback.format_exc())
return format_error(e, API_DEBUGINFO)
@app.route('/relay-api/remote-run/nodes/<string:node_id>', methods=['POST'])
@app.route('/remote-run/nodes/<string:node_id>', methods=['POST'])
def remote_run_node(node_id):
try:
nodes = get_nodes_list(NODESLIST_FILE)
rudder-server-relay/debian/rules
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/ rudder-networks-policy-server-24.conf /opt/rudder/etc/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/relay-api relay_api/ /opt/rudder/share/relay-api/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/relay-api flask/ /opt/rudder/share/relay-api/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/relay-api apache/relay-api.wsgi /usr/share/relay-api/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/relay-api apache/relay-api.wsgi /opt/rudder/share/relay-api/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/relay-api apache/relay-api.conf /etc/apache2/conf.d/
# dh_installmenu
# dh_installdebconf

Also available in: Unified diff