Simon Bruder
c719c1bb4b
All checks were successful
continuous-integration/drone/push Build is passing
40 lines
600 B
Nginx Configuration File
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;
|
|
}
|
|
}
|
|
}
|