Skip to content
Discussion options

You must be logged in to vote

This is a Docker Compose / shell quirk, not really a netbird config bug. When you write in docker-compose.yml:

environment:
  NB_MANAGEMENT_URL: "https://netbird.example.domain:443"

Docker Compose passes the literal string "https://netbird.example.domain:443" (with the quote characters preserved as part of the value) into the container's environment. netbird then does:

// client/internal/profilemanager/config.go
input.ManagementURL = os.Getenv("NB_MANAGEMENT_URL")
// ...
URL, err := parseURL("Management URL", input.ManagementURL)   // url.ParseRequestURI

url.ParseRequestURI rejects the value because "https://...:443" (literal quote + URL + literal quote) isn't a valid URI — that's exactly…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@WarmWelcome
Comment options

Answer selected by WarmWelcome
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants