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 c719c1bb4b
All checks were successful
continuous-integration/drone/push Build is passing
use request_uri instead of uri
2019-07-14 11:58:48 +00:00

40 lines
600 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@@$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name @@TOR_DOMAIN@@;
location / {
proxy_pass https://@@MAIN_DOMAIN@@$request_uri;
}
}
}