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
Simon Bruder 585b470624
All checks were successful
continuous-integration/drone/push Build is passing
init
2019-05-27 14:25:44 +00:00

40 lines
584 B
Nginx Configuration File

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 / {
proxy_pass https://$subdomain.@@MAIN_DOMAIN@@$uri;
}
}
server {
listen 80;
listen [::]:80;
server_name @@TOR_DOMAIN@@;
location / {
proxy_pass https://@@MAIN_DOMAIN@@$uri;
}
}
}