Here are some sample configuration files. This post applies if you have your own server with Nginx and Tor installed.
- Nginx 1.1. Main configuration file Nginx main configuration file /etc/nginx/nginx.conf. In this example, we have hardened the default configuration by adding headers and specifying buffer size limits: cat /etc/nginx/nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 768; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; server_tokens off; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block" always; client_body_buffer_size 1k; client_header_buffer_size 1k; client_max_body_size 1k; large_client_header_buffers 2 1k; include /etc/nginx/mime.