user nginx; worker_processes 1; error_log /dev/stderr warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { access_log none; keepalive_timeout 65; resolver 46.182.19.48 ipv6=off; server_names_hash_bucket_size 128; server_tokens off; server { listen 80; listen [::]:80; server_name ~^(?.+)\.@@TOR_DOMAIN@@$; location / { proxy_pass https://$subdomain.@@MAIN_DOMAIN@@$uri; } } server { listen 80; listen [::]:80; server_name @@TOR_DOMAIN@@; location / { proxy_pass https://@@MAIN_DOMAIN@@$uri; } } }