Test new flag httpOnly in config
This commit is contained in:
parent
75edd0940d
commit
130bee09a8
|
@ -228,11 +228,17 @@ for json in $(yq eval -o json config.yaml | jq -c ".services[]"); do
|
||||||
echo "http.routers.${ruleId}.service: ${ruleId}" >> rules.props
|
echo "http.routers.${ruleId}.service: ${ruleId}" >> rules.props
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# TODO: leave it or remove it?
|
||||||
disableCertificateGeneration=$(echo $rule | jq -r .disableCertificateGeneration)
|
disableCertificateGeneration=$(echo $rule | jq -r .disableCertificateGeneration)
|
||||||
if [[ ${disableCertificateGeneration} == true ]]; then
|
if [[ ${disableCertificateGeneration} == true ]]; then
|
||||||
echo "http.routers.${ruleId}.tls: EMPTYMAP" >> rules.props
|
echo "http.routers.${ruleId}.tls: EMPTYMAP" >> rules.props
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
httpOnly=$(echo $rule | jq -r .httpOnly)
|
||||||
|
if [[ ${httpOnly} == true ]]; then
|
||||||
|
echo "http.routers.${ruleId}.entryPoints.0: insecure" >> rules.props
|
||||||
|
fi
|
||||||
|
|
||||||
# If the specified service does not contain a "@" => we create it
|
# If the specified service does not contain a "@" => we create it
|
||||||
# If the service has a @, it means it is defined elsewhere so we do not create it (custom file, @internal...)
|
# If the service has a @, it means it is defined elsewhere so we do not create it (custom file, @internal...)
|
||||||
if echo ${traefikService} | grep -vq "@"; then
|
if echo ${traefikService} | grep -vq "@"; then
|
||||||
|
|
|
@ -19,11 +19,11 @@ providers:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
insecure:
|
insecure:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
http:
|
# http:
|
||||||
redirections:
|
# redirections:
|
||||||
entryPoint:
|
# entryPoint:
|
||||||
to: secure
|
# to: secure
|
||||||
scheme: https
|
# scheme: https
|
||||||
secure:
|
secure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
http:
|
http:
|
||||||
|
|
Loading…
Reference in New Issue