From 29ef61df881f65119281037d3701bae122f853a6 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Sat, 3 Feb 2024 09:08:29 +0000 Subject: [PATCH] Update Nginx configuration to include /fluentd/logs location --- Nginx/default.conf.template | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Nginx/default.conf.template b/Nginx/default.conf.template index f656904c7e..c7d6e8f764 100644 --- a/Nginx/default.conf.template +++ b/Nginx/default.conf.template @@ -164,20 +164,6 @@ server { proxy_pass http://app/api/identity/status-page-sso/; } - location /fluentd/logs { - proxy_set_header Host $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-Proto $scheme; - - # enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon) - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - - proxy_pass http://ingestor/ingestor/fluentd/v1/logs; - } - location /status-page-identity-api/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -441,6 +427,20 @@ server { proxy_pass http://app/api/notification; } + location /fluentd/logs { + proxy_set_header Host $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-Proto $scheme; + + # enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon) + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + proxy_pass http://ingestor/ingestor/fluentd/v1/logs; + } + location /ingestor { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;