This repository has been archived on 2021-05-15. You can view files and clone it, but cannot push or open issues or pull requests.
tor-reverseproxy/nginx.conf

40 lines
600 B
Nginx Configuration File
Raw Normal View History

2019-05-27 16:25:44 +02:00
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 ~^(?<subdomain>.+)\.@@TOR_DOMAIN@@$;
location / {
2019-07-14 13:58:48 +02:00
proxy_pass https://$subdomain.@@MAIN_DOMAIN@@$request_uri;
2019-05-27 16:25:44 +02:00
}
}
server {
listen 80;
listen [::]:80;
server_name @@TOR_DOMAIN@@;
location / {
2019-07-14 13:58:48 +02:00
proxy_pass https://@@MAIN_DOMAIN@@$request_uri;
2019-05-27 16:25:44 +02:00
}
}
}