Datura-Network/1-Privacy-Front-Ends/anonoverflow/nginx.conf
2024-02-26 11:04:02 +01:00

22 lines
731 B
Nginx Configuration File

server {
listen 443 ssl;
server_name overflow.datura.network;
ssl_certificate /root/.acme.sh/overflow.datura.network/overflow.datura.network.cer;
ssl_certificate_key /root/.acme.sh/overflow.datura.network/overflow.datura.network.key;
######## TOR CHANGES ########
listen 4443;
listen [::]:4443;
server_name overflow.daturab6drmkhyeia4ch5gvfc2f3wgo6bhjrv3pz6n7kxmvoznlkq4yd.onion;
add_header Onion-Location "http://overflow.daturab6drmkhyeia4ch5gvfc2f3wgo6bhjrv3pz6n7kxmvoznlkq4yd.onion$request_uri" always;
######## TOR CHANGES ########
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://localhost:8081;
}
}