Фикс проброса ip адреса из-за nginx-proxy контейнера

This commit is contained in:
ErickSkrauch 2016-10-25 22:21:04 +03:00
parent f3b953607d
commit 69ffb9fd9a

View File

@ -43,9 +43,12 @@ server {
location ~* \.php$ {
fastcgi_pass php:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $host;
fastcgi_param REQUEST_URI $request_url;
fastcgi_param REMOTE_ADDR $http_x_real_ip;
try_files $uri =404;
}