Skip to content
Snippets Groups Projects
Commit 2581c211 authored by Michael Boniface's avatar Michael Boniface
Browse files

Merge branch 'integration' of...

Merge branch 'integration' of gitlab.it-innovation.soton.ac.uk:FLAME/consortium/3rdparties/flame-clmc
parents 791eb828 1dbfd0f6
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,9 @@ http { ...@@ -31,6 +31,9 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;
} }
location /clmc-service {
rewrite /clmc-service $scheme://$http_host/clmc-service/ redirect;
}
location /clmc-service/ { location /clmc-service/ {
proxy_pass http://127.0.0.1:9080/; proxy_pass http://127.0.0.1:9080/;
proxy_redirect off; proxy_redirect off;
...@@ -39,6 +42,9 @@ http { ...@@ -39,6 +42,9 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;
} }
location /influxdb {
rewrite /influxdb $scheme://$http_host/influxdb/ redirect;
}
location /influxdb/ { location /influxdb/ {
proxy_pass http://127.0.0.1:8086/; proxy_pass http://127.0.0.1:8086/;
proxy_redirect off; proxy_redirect off;
...@@ -47,8 +53,20 @@ http { ...@@ -47,8 +53,20 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;
} }
location /neo4j {
rewrite /neo4j $scheme://$http_host/neo4j/ redirect;
}
location /neo4j/ { location /neo4j/ {
proxy_pass http://127.0.0.1:7474/; proxy_pass http://127.0.0.1:7474/;
proxy_redirect $scheme://$http_host/ $scheme://$http_host/neo4j/; # in case a redirect is returned from server
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location /chronograf/v1 {
rewrite /(.*) /chronograf/$1 break; # since basepath is set to /chronograf, the API is actually using /chronograf/chronograf/v1
proxy_pass http://127.0.0.1:8888;
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
......
...@@ -301,7 +301,7 @@ def extract_alert_spec_data(alert_spec): ...@@ -301,7 +301,7 @@ def extract_alert_spec_data(alert_spec):
for handler_url in trigger.trigger_tpl["action"]["implementation"]: for handler_url in trigger.trigger_tpl["action"]["implementation"]:
if handler_url == "flame_sfemc": if handler_url == "flame_sfemc":
handler_url = "http://sfemc.localhost/{0}/{1}/{2}/{3}".format(sfc, sfc_instance, policy_id, "trigger_id_{0}".format(version)) handler_url = "http://sfemc.localhost:8080/sfemc/event/{0}/{1}/{2}".format(sfc, policy_id, "trigger_id_{0}".format(version))
handler_id = "{0}\n{1}\n{2}\n{3}\n{4}".format(sfc, sfc_instance, policy_id, trigger_id, handler_url) handler_id = "{0}\n{1}\n{2}\n{3}\n{4}".format(sfc, sfc_instance, policy_id, trigger_id, handler_url)
handler_id = AlertsConfigurationAPI.get_hash(handler_id) handler_id = AlertsConfigurationAPI.get_hash(handler_id)
......
...@@ -326,7 +326,7 @@ class AlertsConfigurationAPI(object): ...@@ -326,7 +326,7 @@ class AlertsConfigurationAPI(object):
# check for flame_sfemc entry, if found replace with sfemc FQDN # check for flame_sfemc entry, if found replace with sfemc FQDN
if http_handler_url == SFEMC: if http_handler_url == SFEMC:
sfemc_fqdn = self.request.registry.settings['sfemc_fqdn'] sfemc_fqdn = self.request.registry.settings['sfemc_fqdn']
http_handler_url = "http://{0}/{1}/{2}/{3}/{4}".format(sfemc_fqdn, sfc, sfc_i, policy_id, trigger_id) http_handler_url = "http://{0}:8080/sfemc/event/{1}/{2}/{3}".format(sfemc_fqdn, sfc, policy_id, trigger_id)
handler_id = "{0}\n{1}\n{2}\n{3}\n{4}".format(sfc, sfc_i, policy_id, event_id, http_handler_url) handler_id = "{0}\n{1}\n{2}\n{3}\n{4}".format(sfc, sfc_i, policy_id, event_id, http_handler_url)
handler_id = self.get_hash(handler_id) handler_id = self.get_hash(handler_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment