Documentation
¶
Overview ¶
Package auth contains exported proxy auth values. These are used to ensure coherent usage across management and proxy implementations.
Index ¶
Constants ¶
View Source
const ( SessionCookieName = "nb_session" DefaultSessionExpiry = 24 * time.Hour SessionJWTIssuer = "netbird-management" )
Variables ¶
This section is empty.
Functions ¶
func ResolveProto ¶
func ResolveProto(forwardedProto string, conn *tls.ConnectionState) string
ResolveProto determines the protocol scheme based on the forwarded proto configuration. When set to "http" or "https" the value is used directly. Otherwise TLS state is used: if conn is non-nil "https" is returned, else "http".
Types ¶
Click to show internal directories.
Click to hide internal directories.