forked from coop-cloud/traefik
19 lines
427 B
Bash
19 lines
427 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
{{ if eq (env "OVH_ENABLED") "1" }}
|
|
export OVH_CONSUMER_KEY=$(cat "$OVH_CONSUMER_KEY_FILE")
|
|
export OVH_APPLICATION_SECRET=$(cat "$OVH_APPLICATION_SECRET_FILE")
|
|
{{ end }}
|
|
|
|
{{ if eq (env "DIGITALOCEAN_ENABLED") "1" }}
|
|
export DO_AUTH_TOKEN=$(cat "$DO_AUTH_TOKEN_FILE")
|
|
{{ end }}
|
|
|
|
{{ if eq (env "AZURE_ENABLED") "1" }}
|
|
export AZURE_CLIENT_SECRET=$(cat "$AZURE_CLIENT_SECRET_FILE")
|
|
{{ end }}
|
|
|
|
/entrypoint.sh "$@"
|