Skip to content

Commit

Permalink
Add reverse proxy settings to management.json template (netbirdio#1639)
Browse files Browse the repository at this point in the history
Add grpc_set_header to the nginx example template
  • Loading branch information
mlsmaycon authored Feb 28, 2024
1 parent 605cf64 commit 752f83a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infrastructure_files/management.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
"Username": "",
"Password": null
},
"ReverseProxy": {
"TrustedHTTPProxies": [],
"TrustedHTTPProxiesCount": 0,
"TrustedPeers": [
"0.0.0.0/0"
]
},
"Datadir": "",
"DataStoreEncryptionKey": "$NETBIRD_DATASTORE_ENC_KEY",
"StoreConfig": {
Expand Down
1 change: 1 addition & 0 deletions infrastructure_files/nginx.tmpl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ server {
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $host;
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

# Proxy dashboard
location / {
Expand Down

0 comments on commit 752f83a

Please sign in to comment.