mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 23:50:19 +05:30
Фикс проброса ip адреса из-за nginx-proxy контейнера
This commit is contained in:
parent
f3b953607d
commit
69ffb9fd9a
@ -43,9 +43,12 @@ server {
|
|||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
fastcgi_pass php:9000;
|
fastcgi_pass php:9000;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param SERVER_NAME $host;
|
fastcgi_param SERVER_NAME $host;
|
||||||
fastcgi_param REQUEST_URI $request_url;
|
fastcgi_param REQUEST_URI $request_url;
|
||||||
|
fastcgi_param REMOTE_ADDR $http_x_real_ip;
|
||||||
|
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user