show real ip

This commit is contained in:
mercury
2023-08-18 00:16:01 +04:00
parent 49fe87a530
commit 1104e79a2f
7 changed files with 20 additions and 6 deletions
+6 -2
View File
@@ -16,9 +16,13 @@ http {
# Proxy Cache storage - so we can cache the DoH response from the upstream
proxy_cache_path /var/cache/nginx/doh_cache levels=1:2 keys_zone=doh_cache:10m;
real_ip_header proxy_protocol;
real_ip_recursive on;
set_real_ip_from 10.10.0.10;
server {
listen 80 default_server;
listen 443 ssl http2 default_server;
listen 443 ssl http2 default_server proxy_protocol;
ssl_certificate /certs/self_public;
ssl_certificate_key /certs/self_private;
@@ -66,7 +70,7 @@ http {
# server_name ;
#-domain
#-ssl
# listen 443 ssl http2;
# listen 443 ssl http2 proxy_protocol;
# ssl_certificate /certs/cert_public;
# ssl_certificate_key /certs/cert_private;
#-ssl
+6 -2
View File
@@ -16,9 +16,13 @@ http {
# Proxy Cache storage - so we can cache the DoH response from the upstream
proxy_cache_path /var/cache/nginx/doh_cache levels=1:2 keys_zone=doh_cache:10m;
real_ip_header proxy_protocol;
real_ip_recursive on;
set_real_ip_from 10.10.0.10;
server {
listen 80 default_server;
listen 443 ssl http2 default_server;
listen 443 ssl http2 default_server proxy_protocol;
ssl_certificate /certs/self_public;
ssl_certificate_key /certs/self_private;
@@ -66,7 +70,7 @@ http {
# server_name ;
#-domain
#-ssl
# listen 443 ssl http2;
# listen 443 ssl http2 proxy_protocol;
# ssl_certificate /certs/cert_public;
# ssl_certificate_key /certs/cert_private;
#-ssl
+1
View File
@@ -30,6 +30,7 @@ stream {
server {
listen 443 reuseport;
proxy_pass $sni_name;
proxy_protocol on;
ssl_preread on;
}