We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
VARIABLES
{{ .Key }}
1 parent fdb0867 commit feecd9dCopy full SHA for feecd9d
main.go
@@ -37,6 +37,7 @@ func main() {
37
signalUrl := os.Getenv("SIGNAL_API_URL")
38
39
blockedEndpointJSON := os.Getenv("BLOCKED_ENDPOINTS")
40
+ variablesJSON := os.Getenv("VARIABLES")
41
42
log.Info("Loaded Environment Variables")
43
@@ -52,6 +53,18 @@ func main() {
52
53
BLOCKED_ENDPOINTS = blockedEndpoints
54
}
55
56
+ if variablesJSON != "" {
57
+ var variables map[string]string
58
+
59
+ err := json.Unmarshal([]byte(variablesJSON), &variables)
60
61
+ if err != nil {
62
+ log.Error("Could not decode Variables ", variablesJSON)
63
+ }
64
65
+ VARIABLES = variables
66
67
68
handler = proxy.Create(signalUrl)
69
70
finalHandler := proxy.AuthMiddleware(
0 commit comments