env_keep
в /etc/sudoers
Defaults env_keep += "PATH"
man 5 sudoers :
env_reset If set, sudo will reset the environment to only contain
the LOGNAME, SHELL, USER, USERNAME and the SUDO_* vari-
ables. Any variables in the caller's environment that
match the env_keep and env_check lists are then added.
The default contents of the env_keep and env_check
lists are displayed when sudo is run by root with the
-V option. If sudo was compiled with the SECURE_PATH
option, its value will be used for the PATH environment
variable. This flag is on by default.
xdebug.client_host=127.0.0.1
docker inspect <container_id>
или задать явно в момент запуска контейнера.location /storage/ {
limit_req zone=static burst=100 nodelay;
proxy_pass http://домен.рф/media/;
proxy_redirect off;
expires 14d;
proxy_cache staticcache_storage;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
proxy_cache_valid 200 301 302 120m;
proxy_cache_use_stale error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_cache_revalidate on;
}