initial commit
This commit is contained in:
parent
80dd92a994
commit
8b2c1ee168
|
@ -36,9 +36,9 @@ location ~ ^/(api|feeds|nodeinfo|.well-known) {
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
# Rate limit
|
# Rate limit
|
||||||
limit_req zone={{ item.name }}_ratelimit burst=30 nodelay;
|
#limit_req zone={{ item.name }}_ratelimit burst=30 nodelay;
|
||||||
|
|
||||||
# Add IP forwarding headers
|
# Send actual client IP upstream
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
@ -75,11 +75,11 @@ location ~ ^/(api|feeds|nodeinfo|.well-known) {
|
||||||
|
|
||||||
# Anonymize IP addresses
|
# Anonymize IP addresses
|
||||||
# https://www.supertechcrew.com/anonymizing-logs-nginx-apache/
|
# https://www.supertechcrew.com/anonymizing-logs-nginx-apache/
|
||||||
map $remote_addr $remote_addr_anon {
|
#map $remote_addr $remote_addr_anon {
|
||||||
~(?P<ip>\d+\.\d+\.\d+)\. $ip.0;
|
# ~(?P<ip>\d+\.\d+\.\d+)\. $ip.0;
|
||||||
~(?P<ip>[^:]+:[^:]+): $ip::;
|
# ~(?P<ip>[^:]+:[^:]+): $ip::;
|
||||||
127.0.0.1 $remote_addr;
|
# 127.0.0.1 $remote_addr;
|
||||||
::1 $remote_addr;
|
# ::1 $remote_addr;
|
||||||
default {{ item.upstream_name }};
|
# default {{ item.upstream_name }};
|
||||||
}
|
#}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue