tor-container/nginx/default.conf

24 lines
757 B
Text

server {
listen 80;
server_name localhost;
# Basic error logging
error_log /var/log/nginx/error.log warn;
location / {
# CHANGE THIS to your actual Netbird Service IP and Port
# Example: proxy_pass http://100.64.0.10:5000;
proxy_pass http://100.x.x.x:5000;
# Standard Proxy Headers required for most apps
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket Support (if needed later)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}