File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ maintainers:
55 - email : dustin@elegantthemes.com
66 name : Elegant Themes
77name : cloud-screenshot
8- version : 1.2.0
8+ version : 1.2.1
Original file line number Diff line number Diff line change 3030 client_body_buffer_size 50M;
3131 client_max_body_size 100M;
3232
33+ map $http_x_real_ip $php_client_ip {
34+ default $http_x_real_ip;
35+ "" $remote_addr;
36+ }
37+
3338 upstream php {
3439 server 127.0.0.1:9000;
3540 }
7782
7883 # Always use the domain in the Host header for PHP processing
7984 fastcgi_param HTTP_HOST $host_to_use;
80-
8185 include fastcgi_params;
86+ fastcgi_param HTTP_X_REAL_IP $php_client_ip;
87+ fastcgi_param HTTP_X_FORWARDED_FOR $http_x_forwarded_for;
88+ fastcgi_param HTTP_X_FORWARDED_HOST $http_x_forwarded_host;
89+ fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto;
90+ fastcgi_param REMOTE_ADDR $remote_addr;
8291 fastcgi_read_timeout 60;
8392 fastcgi_pass php;
8493 }
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ maintainers:
55 - email : dustin@elegantthemes.com
66 name : Elegant Themes
77name : cloud-server
8- version : 1.1.0
8+ version : 1.1.1
Original file line number Diff line number Diff line change 3434 "" "*";
3535 }
3636
37+ map $http_x_real_ip $php_client_ip {
38+ default $http_x_real_ip;
39+ "" $remote_addr;
40+ }
41+
3742 upstream php {
3843 server 127.0.0.1:9000;
3944 }
@@ -95,9 +100,11 @@ data:
95100 include fastcgi_params;
96101 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
97102 fastcgi_param HTTP_HOST $host;
103+ fastcgi_param HTTP_X_REAL_IP $php_client_ip;
98104 fastcgi_param HTTP_X_FORWARDED_FOR $http_x_forwarded_for;
99105 fastcgi_param HTTP_X_FORWARDED_HOST $http_x_forwarded_host;
100106 fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto;
107+ fastcgi_param REMOTE_ADDR $remote_addr;
101108 fastcgi_read_timeout 60;
102109 fastcgi_pass php;
103110 }
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ maintainers:
55 - email : dustin@elegantthemes.com
66 name : Elegant Themes
77name : d5-demo-server
8- version : 1.1.0
8+ version : 1.1.1
Original file line number Diff line number Diff line change 2626 client_max_body_size 100M;
2727 proxy_read_timeout 300;
2828
29+ map $http_x_real_ip $php_client_ip {
30+ default $http_x_real_ip;
31+ "" $remote_addr;
32+ }
33+
2934 upstream php {
3035 server 127.0.0.1:9000;
3136 }
6974 include fastcgi_params;
7075 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
7176 fastcgi_param HTTP_HOST $host;
77+ fastcgi_param HTTP_X_REAL_IP $php_client_ip;
7278 fastcgi_param HTTP_X_FORWARDED_FOR $http_x_forwarded_for;
7379 fastcgi_param HTTP_X_FORWARDED_HOST $http_x_forwarded_host;
7480 fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto;
81+ fastcgi_param REMOTE_ADDR $remote_addr;
7582 fastcgi_read_timeout 60;
7683 fastcgi_pass php;
7784 }
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ maintainers:
55 - email : dustin@elegantthemes.com
66 name : Elegant Themes
77name : hub-server
8- version : 1.3.0
8+ version : 1.3.1
Original file line number Diff line number Diff line change 2626 client_max_body_size 100M;
2727 keepalive_timeout 65;
2828
29+ map $http_x_real_ip $php_client_ip {
30+ default $http_x_real_ip;
31+ "" $remote_addr;
32+ }
33+
2934 upstream php {
3035 server 127.0.0.1:9000;
3136 }
6368 include fastcgi_params;
6469 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
6570 fastcgi_param HTTP_HOST $host;
71+ fastcgi_param HTTP_X_REAL_IP $php_client_ip;
6672 fastcgi_param HTTP_X_FORWARDED_FOR $http_x_forwarded_for;
6773 fastcgi_param HTTP_X_FORWARDED_HOST $http_x_forwarded_host;
6874 fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto;
75+ fastcgi_param REMOTE_ADDR $remote_addr;
6976 fastcgi_read_timeout 300;
7077 fastcgi_pass php;
7178 }
You can’t perform that action at this time.
0 commit comments