mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 04:30:25 +00:00
NOISSUE - Fix Nginx config
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
This commit is contained in:
@@ -16,7 +16,6 @@ user_token = ""
|
|||||||
domains_url = "http://localhost:9003"
|
domains_url = "http://localhost:9003"
|
||||||
host_url = "http://localhost"
|
host_url = "http://localhost"
|
||||||
http_adapter_url = "http://localhost:8008"
|
http_adapter_url = "http://localhost:8008"
|
||||||
invitations_url = "http://localhost:9020"
|
|
||||||
reader_url = "http://localhost:9011"
|
reader_url = "http://localhost:9011"
|
||||||
clients_url = "http://localhost:9006"
|
clients_url = "http://localhost:9006"
|
||||||
channels_url = "http://localhost:9005"
|
channels_url = "http://localhost:9005"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ envsubst '
|
|||||||
${SMQ_HTTP_ADAPTER_PORT}
|
${SMQ_HTTP_ADAPTER_PORT}
|
||||||
${SMQ_NGINX_MQTT_PORT}
|
${SMQ_NGINX_MQTT_PORT}
|
||||||
${SMQ_NGINX_MQTTS_PORT}
|
${SMQ_NGINX_MQTTS_PORT}
|
||||||
${SMQ_INVITATIONS_HTTP_PORT}
|
|
||||||
${SMQ_WS_ADAPTER_HTTP_PORT}' </etc/nginx/nginx.conf.template >/etc/nginx/nginx.conf
|
${SMQ_WS_ADAPTER_HTTP_PORT}' </etc/nginx/nginx.conf.template >/etc/nginx/nginx.conf
|
||||||
|
|
||||||
exec nginx -g "daemon off;"
|
exec nginx -g "daemon off;"
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ worker_processes auto;
|
|||||||
worker_cpu_affinity auto;
|
worker_cpu_affinity auto;
|
||||||
pid /run/nginx.pid;
|
pid /run/nginx.pid;
|
||||||
include /etc/nginx/modules-enabled/*.conf;
|
include /etc/nginx/modules-enabled/*.conf;
|
||||||
|
worker_rlimit_nofile 65535;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
# Explanation: https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections
|
# 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 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 {
|
location /health {
|
||||||
include snippets/proxy-headers.conf;
|
include snippets/proxy-headers.conf;
|
||||||
proxy_pass http://clients:${SMQ_CLIENTS_HTTP_PORT};
|
proxy_pass http://clients:${SMQ_CLIENTS_HTTP_PORT};
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ pid /run/nginx.pid;
|
|||||||
load_module /etc/nginx/modules/ngx_stream_js_module.so;
|
load_module /etc/nginx/modules/ngx_stream_js_module.so;
|
||||||
load_module /etc/nginx/modules/ngx_http_js_module.so;
|
load_module /etc/nginx/modules/ngx_http_js_module.so;
|
||||||
include /etc/nginx/modules-enabled/*.conf;
|
include /etc/nginx/modules-enabled/*.conf;
|
||||||
|
worker_rlimit_nofile 65535;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
# Explanation: https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections
|
# Explanation: https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections
|
||||||
|
|||||||
Reference in New Issue
Block a user