Skip to content

Commit a759f1f

Browse files
committed
Add custom nginx configuration to ee-nginx-proxy
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent 15175c1 commit a759f1f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

php/site-utils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ function init_checks() {
9090

9191

9292
if ( EE::docker()::boot_container( $proxy_type, $ee_proxy_command ) ) {
93+
$fs = new Filesystem();
94+
$fs->dumpFile( "$EE_CONF_ROOT/nginx/conf.d/custom.conf", file_get_contents( EE_ROOT . '/templates/custom.conf.mustache' ) );
9395
EE::success( "$proxy_type container is up." );
9496
} else {
9597
EE::error( "There was some error in starting $proxy_type container. Please check logs." );

templates/custom.conf.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
server_tokens off;
2+
client_max_body_size 100m;

0 commit comments

Comments
 (0)