Configure Nginx Reverse Proxy for Netbird Forwarding
This commit is contained in:
parent
13163d39f7
commit
a15bd524a0
2 changed files with 26 additions and 0 deletions
24
nginx/default.conf
Normal file
24
nginx/default.conf
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue