From 8989f20da9c1100c3e5b7a42af7b89d27c2a9136 Mon Sep 17 00:00:00 2001 From: lost-skunk <142628558+lost-skunk@users.noreply.github.com> Date: Tue, 5 Sep 2023 13:35:49 +0000 Subject: [PATCH] Create example-tor-nginx.conf --- example-tor-nginx.conf | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 example-tor-nginx.conf diff --git a/example-tor-nginx.conf b/example-tor-nginx.conf new file mode 100644 index 0000000..8703e52 --- /dev/null +++ b/example-tor-nginx.conf @@ -0,0 +1,36 @@ +#replace everything in <> with your own values + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + + server { + listen 127.0.0.1:; + server_name xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion; + allow 127.0.0.1; + deny all; + server_tokens off; + rewrite ^/(.*) http://binternet.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion/$1 permanent; + } + + server { + listen 127.0.0.1:; + server_name binternet.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion; + allow 127.0.0.1; + deny all; + server_tokens off; + root ; + index index.php; + + location ~ \.php$ { + try_files $uri $uri/ =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:/run/php-fpm/php-fpm.sock; + include fastcgi.conf; + } + } +}