diff options
author | André Draszik <andre.draszik@jci.com> | 2019-01-18 15:03:23 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-01-19 10:06:20 -0800 |
commit | eaedfa5e0e92e20065a2f95a4dc40311edc686fa (patch) | |
tree | 1d0ed031612206df92091d1127146f4b060a2b73 /meta-webserver/recipes-httpd/nginx/files/proxy_params | |
parent | 22e17bb10c589775b3196b07bde4912658a5dcbd (diff) | |
download | meta-openembedded-eaedfa5e0e92e20065a2f95a4dc40311edc686fa.tar.gz |
nginx: add default proxy_params
As per Debian packaging - to use it, see
https://wiki.debian.org/Nginx/DirectoryStructure#Extra_Parameters
This file is most commonly included when Nginx is acting
as a reverse proxy:
include /etc/nginx/proxy_params;
proxy_pass http://localhost:8000;
Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/nginx/files/proxy_params')
-rw-r--r-- | meta-webserver/recipes-httpd/nginx/files/proxy_params | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/files/proxy_params b/meta-webserver/recipes-httpd/nginx/files/proxy_params new file mode 100644 index 0000000000..df75bc5d74 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/files/proxy_params | |||
@@ -0,0 +1,4 @@ | |||
1 | proxy_set_header Host $http_host; | ||
2 | proxy_set_header X-Real-IP $remote_addr; | ||
3 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
4 | proxy_set_header X-Forwarded-Proto $scheme; | ||