forked from NginxProxyManager/nginx-proxy-manager
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #782/update coreruleset/switch to freenginx/dep updates/remove …
…aws cloudfront ips/block apache files Signed-off-by: Zoey <zoey@z0ey.de>
- Loading branch information
1 parent
e5070f5
commit 5e9619b
Showing
7 changed files
with
22 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{% for range in ip_ranges %} | ||
set_real_ip_from {{ range }}; | ||
{% endfor %} | ||
{% endfor %} | ||
|
||
map $http_cf_connecting_ip $real_ip { | ||
"" $http_x_real_ip; | ||
default $http_cf_connecting_ip; | ||
} | ||
|
||
more_set_input_headers "X-IP: $real_ip"; | ||
real_ip_header X-IP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,7 @@ location = /nftd { | |
location /nftd/ { | ||
alias /nftd/; | ||
} | ||
|
||
location ~ /\.ht { | ||
deny all; | ||
} |