You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2021/10/05 17:58:48 UTC
[incubator-streampipes] branch dev updated: Provide "HTTP Server"
adapter endpoints
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 0813556 Provide "HTTP Server" adapter endpoints
new a23865b Merge pull request #50 from obermeier/patch-1
0813556 is described below
commit 08135564f74826218ffb61d6c28d4897bd858d11
Author: Stefan Obermeier <ob...@users.noreply.github.com>
AuthorDate: Tue Oct 5 19:23:36 2021 +0200
Provide "HTTP Server" adapter endpoints
See https://issues.apache.org/jira/browse/STREAMPIPES-440
---
ui/nginx_config/default.conf | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/ui/nginx_config/default.conf b/ui/nginx_config/default.conf
index 47005fb..70224bc 100644
--- a/ui/nginx_config/default.conf
+++ b/ui/nginx_config/default.conf
@@ -128,6 +128,17 @@ server {
proxy_redirect off;
}
+ location ~/endpoints/(?<endpointName>.*)$ {
+ set $upstream connect-worker-main:8098/api/v1/worker/live/$endpointName;
+
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-NginX-Proxy true;
+ proxy_pass http://$upstream;
+ proxy_ssl_session_reuse off;
+ proxy_set_header Host $http_host;
+ }
+
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html