mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +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_USERS_HTTP_PORT}
|
||||||
${MF_THINGS_HTTP_PORT}
|
${MF_THINGS_HTTP_PORT}
|
||||||
${MF_HTTP_ADAPTER_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
|
${MF_WS_ADAPTER_PORT}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
|
||||||
|
|
||||||
exec nginx -g "daemon off;"
|
exec nginx -g "daemon off;"
|
||||||
|
@ -95,10 +95,10 @@ stream {
|
|||||||
include snippets/mqtt-upstream.conf;
|
include snippets/mqtt-upstream.conf;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 1883;
|
listen ${MF_NGINX_MQTT_PORT};
|
||||||
listen [::]:1883;
|
listen [::]:${MF_NGINX_MQTT_PORT};
|
||||||
listen 8883 ssl;
|
listen ${MF_NGINX_MQTTS_PORT} ssl;
|
||||||
listen [::]:8883 ssl;
|
listen [::]:${MF_NGINX_MQTTS_PORT} ssl;
|
||||||
|
|
||||||
include snippets/ssl.conf;
|
include snippets/ssl.conf;
|
||||||
|
|
||||||
|
@ -109,10 +109,10 @@ stream {
|
|||||||
include snippets/ssl-client.conf;
|
include snippets/ssl-client.conf;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 1883;
|
listen ${MF_NGINX_MQTT_PORT};
|
||||||
listen [::]:1883;
|
listen [::]:${MF_NGINX_MQTT_PORT};
|
||||||
listen 8883 ssl;
|
listen ${MF_NGINX_MQTTS_PORT} ssl;
|
||||||
listen [::]:8883 ssl;
|
listen [::]:${MF_NGINX_MQTTS_PORT} ssl;
|
||||||
|
|
||||||
include snippets/ssl.conf;
|
include snippets/ssl.conf;
|
||||||
js_preread authenticate;
|
js_preread authenticate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user