Example of Tor+Nginx Onion Website Configuration Files

Here are some sample configuration files. This post applies if you have your own server with Nginx and Tor installed.

  1. 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.
Read more →

How to Use Mkp224o

Here is how to use the mkp224o utility to generate a vanity URL based on your specified filter. Step 1 — Prepare Server These instructions are for a Linux server running a recent version of Debian or Ubuntu. Get your server package lists up to date: sudo apt update Upgrade to the latest version of all your existing packages: sudo apt upgrade Install the prerequisites for compiling mkp224o from source:
Read more →