mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00
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;
|
||
|
}
|