mirror of
https://github.com/demostf/setup
synced 2026-06-04 00:54:07 +02:00
realip
This commit is contained in:
parent
8d9fbbe065
commit
f7426209da
2 changed files with 6 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
.env
|
||||
db_data
|
||||
letsencrypt
|
||||
|
|
|
|||
5
api.tmpl
5
api.tmpl
|
|
@ -11,6 +11,11 @@ server {
|
|||
|
||||
try_files $uri /index.php?$query_string /index.php;
|
||||
|
||||
set_real_ip_from 10.0.0.0/8;
|
||||
set_real_ip_from 172.16.0.0/12;
|
||||
set_real_ip_from 192.168.0.0/16;
|
||||
real_ip_header X-Forwarded-For;
|
||||
|
||||
location ~ ^(.+?\.php)(/.*)?$ {
|
||||
fastcgi_param PATH_INFO $2;
|
||||
fastcgi_pass api:9000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue