Skip to content

Commit 37f5667

Browse files
author
Ric Harvey
committed
Update readme formatting
1 parent cbf7633 commit 37f5667

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ The following flags are a list of all the currently supported options that can b
5959
- **PHP_POST_MAX_SIZE** : Set a larger post_max_size, default is 100 Mb
6060
- **PHP_UPLOAD_MAX_FILESIZE** : Set a larger upload_max_filesize, default is 100 Mb
6161
- **DOMAIN** : Set domain name for Lets Encrypt scripts
62+
- **REAL_IP_HEADER** : set to 1 to enable real ip support in the logs
63+
- **REAL_IP_FROM** : set to your CIDR block for real ip in logs
6264
- **RUN_SCRIPTS** : Set to 1 to execute scripts
6365

6466
### Dynamically Pulling code from git
@@ -106,7 +108,7 @@ sudo docker run -d -e 'GIT_NAME=full_name' -e 'GIT_USERNAME=git_username' -e 'GI
106108
### Custom Nginx Config files
107109
Sometimes you need a custom config file for nginx to achieve this read the [Nginx config guide](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/nginx_configs.md)
108110

109-
## REAL IP / X-Forwarded-For Headers
111+
#### REAL IP / X-Forwarded-For Headers
110112
If you operate your container behind a load balancer, an ELB on AWS for example, you need to configure nginx to get the real IP and not the load balancer IP in the logs by using the X-Forwarded-For. We've provided some handy flags to let you do this. You need to set both of these to get this to work:
111113
```
112114
-e "REAL_IP_HEADER=1"

0 commit comments

Comments
 (0)