From 40fbf6a080a03ed4aa5465a4aa4052e7e508a4f0 Mon Sep 17 00:00:00 2001 From: Dusan Borovcanin Date: Fri, 14 Feb 2025 10:41:10 +0100 Subject: [PATCH] NOISSUE - Fix Nginx config Signed-off-by: Dusan Borovcanin --- config.toml | 1 - docker/nginx/entrypoint.sh | 1 - docker/nginx/nginx-key.conf | 8 +------- docker/nginx/nginx-x509.conf | 1 + 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index 22871b96b..423037e09 100644 --- a/config.toml +++ b/config.toml @@ -16,7 +16,6 @@ user_token = "" domains_url = "http://localhost:9003" host_url = "http://localhost" http_adapter_url = "http://localhost:8008" - invitations_url = "http://localhost:9020" reader_url = "http://localhost:9011" clients_url = "http://localhost:9006" channels_url = "http://localhost:9005" diff --git a/docker/nginx/entrypoint.sh b/docker/nginx/entrypoint.sh index fa6d32672..a47a4f91a 100755 --- a/docker/nginx/entrypoint.sh +++ b/docker/nginx/entrypoint.sh @@ -21,7 +21,6 @@ envsubst ' ${SMQ_HTTP_ADAPTER_PORT} ${SMQ_NGINX_MQTT_PORT} ${SMQ_NGINX_MQTTS_PORT} - ${SMQ_INVITATIONS_HTTP_PORT} ${SMQ_WS_ADAPTER_HTTP_PORT}' /etc/nginx/nginx.conf exec nginx -g "daemon off;" diff --git a/docker/nginx/nginx-key.conf b/docker/nginx/nginx-key.conf index 7fdce7d55..f8b795c54 100644 --- a/docker/nginx/nginx-key.conf +++ b/docker/nginx/nginx-key.conf @@ -8,6 +8,7 @@ worker_processes auto; worker_cpu_affinity auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; +worker_rlimit_nofile 65535; events { # Explanation: https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections @@ -92,13 +93,6 @@ http { proxy_pass http://channels:${SMQ_CHANNELS_HTTP_PORT}; } - # Proxy pass to invitations service - location ~ ^/(invitations) { - include snippets/proxy-headers.conf; - add_header Access-Control-Expose-Headers Location; - proxy_pass http://invitations:${SMQ_INVITATIONS_HTTP_PORT}; - } - location /health { include snippets/proxy-headers.conf; proxy_pass http://clients:${SMQ_CLIENTS_HTTP_PORT}; diff --git a/docker/nginx/nginx-x509.conf b/docker/nginx/nginx-x509.conf index 305aead87..13f5d9e4c 100644 --- a/docker/nginx/nginx-x509.conf +++ b/docker/nginx/nginx-x509.conf @@ -10,6 +10,7 @@ pid /run/nginx.pid; load_module /etc/nginx/modules/ngx_stream_js_module.so; load_module /etc/nginx/modules/ngx_http_js_module.so; include /etc/nginx/modules-enabled/*.conf; +worker_rlimit_nofile 65535; events { # Explanation: https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections