Add a traefik frontend with basic features
This commit is contained in:
12
traefik/start.sh
Executable file
12
traefik/start.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Substitute configuration
|
||||
for VARIABLE in `env | cut -f1 -d=`; do
|
||||
sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /conf/*.toml
|
||||
done
|
||||
|
||||
# Select the proper configuration
|
||||
cp /conf/$TLS_FLAVOR.toml /conf/traefik.toml
|
||||
|
||||
exec traefik -c /conf/traefik.toml
|
||||
|
||||
Reference in New Issue
Block a user