custom config outside server block
This commit is contained in:
parent
f052a25168
commit
8386dd4a2a
@ -1226,7 +1226,7 @@ The number of days before rotated files are deleted.
|
|||||||
Custom configurations files (ending with .conf suffix) can be added in some directory inside the container :
|
Custom configurations files (ending with .conf suffix) can be added in some directory inside the container :
|
||||||
- /http-confs : http context
|
- /http-confs : http context
|
||||||
- /server-confs : server context
|
- /server-confs : server context
|
||||||
- /pre-server-confs : before server context (add map or upstream config)
|
- /pre-server-confs : before server context (add map or upstream config for example)
|
||||||
|
|
||||||
You just need to use a volume like this :
|
You just need to use a volume like this :
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
@ -50,7 +50,7 @@ if [ "$MULTISITE" = "yes" ] ; then
|
|||||||
replace_in_file "${NGINX_PREFIX}server.conf" "%PRE_SERVER_CONF%" "include /pre-server-confs/*.conf;\ninclude /pre-server-confs/${1}/*.conf;"
|
replace_in_file "${NGINX_PREFIX}server.conf" "%PRE_SERVER_CONF%" "include /pre-server-confs/*.conf;\ninclude /pre-server-confs/${1}/*.conf;"
|
||||||
else
|
else
|
||||||
replace_in_file "${NGINX_PREFIX}server.conf" "%SERVER_CONF%" "include /server-confs/*.conf;"
|
replace_in_file "${NGINX_PREFIX}server.conf" "%SERVER_CONF%" "include /server-confs/*.conf;"
|
||||||
replace_in_file "${NGINX_PREFIX}server.conf" "%PRE_SERVER_CONF%" "include /pre-server-confs/*.conf;\ninclude /pre-server-confs/${1}/*.conf;"
|
replace_in_file "${NGINX_PREFIX}server.conf" "%PRE_SERVER_CONF%" "include /pre-server-confs/*.conf;"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# max body size
|
# max body size
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user