From ef9934ce6b6574fb2300551d25aedafd66dde427 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 20 Mar 2023 13:53:07 +0000 Subject: [PATCH] Commit nginx config file --- config/otel_dev/nginx_otel.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 config/otel_dev/nginx_otel.conf diff --git a/config/otel_dev/nginx_otel.conf b/config/otel_dev/nginx_otel.conf new file mode 100644 index 00000000..90d69707 --- /dev/null +++ b/config/otel_dev/nginx_otel.conf @@ -0,0 +1,16 @@ +server { + listen 8080; + server_name localhost; + + location / { + proxy_pass http://jaeger-all-in-one:16686/; + add_header Access-Control-Allow-Origin *; + + if ($request_method = OPTIONS) { + add_header Access-Control-Allow-Origin *; + add_header Content-Type text/plain; + add_header Content-Length 0; + return 204; + } + } +}