mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00
fix envs for nginx (#1215)
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
This commit is contained in:
parent
a7eee53dfb
commit
09d09c6ef5
@ -13,6 +13,8 @@ envsubst '
|
||||
${MF_USERS_HTTP_PORT}
|
||||
${MF_THINGS_HTTP_PORT}
|
||||
${MF_HTTP_ADAPTER_PORT}
|
||||
${MF_NGINX_MQTT_PORT}
|
||||
${MF_NGINX_MQTTS_PORT}
|
||||
${MF_WS_ADAPTER_PORT}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
|
||||
|
||||
exec nginx -g "daemon off;"
|
||||
|
@ -95,10 +95,10 @@ stream {
|
||||
include snippets/mqtt-upstream.conf;
|
||||
|
||||
server {
|
||||
listen 1883;
|
||||
listen [::]:1883;
|
||||
listen 8883 ssl;
|
||||
listen [::]:8883 ssl;
|
||||
listen ${MF_NGINX_MQTT_PORT};
|
||||
listen [::]:${MF_NGINX_MQTT_PORT};
|
||||
listen ${MF_NGINX_MQTTS_PORT} ssl;
|
||||
listen [::]:${MF_NGINX_MQTTS_PORT} ssl;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
|
||||
|
@ -109,10 +109,10 @@ stream {
|
||||
include snippets/ssl-client.conf;
|
||||
|
||||
server {
|
||||
listen 1883;
|
||||
listen [::]:1883;
|
||||
listen 8883 ssl;
|
||||
listen [::]:8883 ssl;
|
||||
listen ${MF_NGINX_MQTT_PORT};
|
||||
listen [::]:${MF_NGINX_MQTT_PORT};
|
||||
listen ${MF_NGINX_MQTTS_PORT} ssl;
|
||||
listen [::]:${MF_NGINX_MQTTS_PORT} ssl;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
js_preread authenticate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user