简体   繁体   中英

docker nginx-proxy config per virtual host

I use this to generate a nginx-proxy in my ubuntu docker environment: https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion

Then I created many container with virtual hosts for my different domains. One of these containers is a joomla container, which needs a larger client_max_body_size.

In the evertramos repo I found an explanation how to set client_max_body_size for all virtual hosts, but I want to change it only for the specific domain.

Where do I have to create that file, how is it named and which contents are inside?

USE_NGINX_CONF_FILES=true is already set in .env

It was too easy:

File in NGINX_FILES_PATH/example.com with

client_max_body_size = 100m;

nothing more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM