diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf index f12cbb5..a64da6b 100644 --- a/configs/nginx/nginx.conf +++ b/configs/nginx/nginx.conf @@ -74,12 +74,14 @@ server { server_name example.com; location / { - proxy_pass http://127.0.0.1:8118; - proxy_read_timeout 2000; + # Uncomment to route requests through Tor. + # proxy_pass http://127.0.0.1:8118; + # proxy_set_header Host $server_id.onion; + # proxy_read_timeout 2000; + if ($host ~* (.*).example.com) { set $server_id $1; } - proxy_set_header Host $server_id.onion; # 31536000 == 1 year add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; add_header X-Frame-Options DENY;