mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00

* Add MQTT cluster configs Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com> * Bump worker_connections value in nginx.conf Signed-off-by: drasko <drasko.draskovic@gmail.com> * Revert config.toml Signed-off-by: drasko <drasko.draskovic@gmail.com> * Fix cluster Signed-off-by: drasko <drasko.draskovic@gmail.com> * Move non-ssl server into the same directive Signed-off-by: drasko <drasko.draskovic@gmail.com> * Fix cluster Signed-off-by: drasko <drasko.draskovic@gmail.com> * Remove unnecessary comments Signed-off-by: drasko <drasko.draskovic@gmail.com> * Organize docker-compose and nginx conf files Signed-off-by: drasko <drasko.draskovic@gmail.com> * Correct nginx.conf for mTLS and aux changes Signed-off-by: drasko <drasko.draskovic@gmail.com> * Fix NginX conf trailing slash in proxy_pass Signed-off-by: drasko <drasko.draskovic@gmail.com> * Fix path for MQTT Signed-off-by: drasko <drasko.draskovic@gmail.com> * Fix minorstuff in gitignore and comments Signed-off-by: drasko <drasko.draskovic@gmail.com>
15 lines
411 B
Plaintext
15 lines
411 B
Plaintext
# Copyright (c) Mainflux
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
proxy_redirect off;
|
|
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;
|
|
|
|
# Allow OPTIONS method CORS
|
|
if ($request_method = OPTIONS) {
|
|
add_header Content-Length 0;
|
|
add_header Content-Type text/plain;
|
|
return 200;
|
|
} |