You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/nginx_configs.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
## Custom Nginx Config files
2
2
Sometimes you need a custom config file for nginx to do rewrites or password protection, etc. For this reason we've included the ability to have custom nginx configs pulled directly from your git source. Please have a read of the [repo layout guidelines](repo_layout.md) for more information. Its pretty simple to enable this, all you need to do is include a folder in the root of your repository called ```conf/nginx/``` within this folder you need to include a file called ```nginx-site.conf``` which will contain your default nginx site config. If you wish to have a custom file for SSL you simply include a file called ```nginx-site-ssl.conf``` in the same directory. These files will then be swapped in after you code is cloned.
3
+
In addition, you can configure __CONFIG_FOLDER__ with your custome path.
3
4
4
5
## REAL IP / X-Forwarded-For Headers
5
6
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:
Copy file name to clipboardExpand all lines: docs/scripting_templating.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
## Scripting
2
2
There is often an occasion where you need to run a script on code to do a transformation once code lands in the container. For this reason we have developed scripting support. By including a scripts folder in your git repository and passing the __RUN_SCRIPTS=1__ flag to your command line the container will execute your scripts. Please see the [repo layout guidelines](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/repo_layout.md) for more details on how to organise this.
3
+
In addition, you can configure __SCRIPT_FOLDER__ with your custome path.
3
4
4
5
## Using environment variables / templating
5
6
To set the variables pass them in as environment variables on the docker command line.
0 commit comments