Clean + add doc
This commit is contained in:
parent
af77d8c0f9
commit
44ee173213
|
@ -25,6 +25,12 @@ Since there are some breaking changes and a configuration structure migration, a
|
||||||
* **Support arbitrary Traefik rules**
|
* **Support arbitrary Traefik rules**
|
||||||
* Place a Traefik YAML in ``samples/custom-traefik/`` directory, it will be copied in the Traefik configuration folder.
|
* Place a Traefik YAML in ``samples/custom-traefik/`` directory, it will be copied in the Traefik configuration folder.
|
||||||
* Ideal to forward traffic to other services which do not belong to this seedbox.
|
* Ideal to forward traffic to other services which do not belong to this seedbox.
|
||||||
|
* **Disable certificates for some domains**
|
||||||
|
* Using the flag ``httpOnly: true`` on a service, access any service in unsecure mode, delegating certificates management on a higher level (reverse proxy, firewall...). More details in the [Configuration Guide](./configuration.md).
|
||||||
|
* **Multiple hosts for any services**
|
||||||
|
* The new config structure allows for more customization, for example you can now have many routes on the same service. Let's say, a local unsecured route + a secured one for remote access. Or anything you want.
|
||||||
|
* **More customization**
|
||||||
|
* Such as http authentication which is no more hardcoded but configurable for each service.
|
||||||
* **New services**
|
* **New services**
|
||||||
* ``Gluetun``: [VPN client (see above)](https://github.com/qdm12/gluetun)
|
* ``Gluetun``: [VPN client (see above)](https://github.com/qdm12/gluetun)
|
||||||
* ``Heimdall``: [Dashboard](https://github.com/linuxserver/Heimdall)
|
* ``Heimdall``: [Dashboard](https://github.com/linuxserver/Heimdall)
|
||||||
|
|
|
@ -231,12 +231,6 @@ 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)
|
|
||||||
if [[ ${disableCertificateGeneration} == true ]]; then
|
|
||||||
echo "http.routers.${ruleId}.tls: EMPTYMAP" >> rules.props
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if httpOnly flag is enabled
|
# Check if httpOnly flag is enabled
|
||||||
# If enabled => Specify to use only "insecure" (port 80) entrypoint
|
# If enabled => Specify to use only "insecure" (port 80) entrypoint
|
||||||
# If not => use all entryPoints (by not specifying any) but force redirection to https
|
# If not => use all entryPoints (by not specifying any) but force redirection to https
|
||||||
|
@ -263,8 +257,10 @@ yq -p=props rules.props > traefik/custom/dynamic-rules.yaml
|
||||||
rm -f rules.props
|
rm -f rules.props
|
||||||
|
|
||||||
# Post-transformations on the rules file
|
# Post-transformations on the rules file
|
||||||
sed -i "s/EMPTYMAP/{}/g" traefik/custom/dynamic-rules.yaml
|
# sed -i "s/EMPTYMAP/{}/g" traefik/custom/dynamic-rules.yaml
|
||||||
|
# Add simple quotes around Host rule
|
||||||
sed -i --regexp-extended "s/^(.*: )(Host.*$)/\1'\2'/g" traefik/custom/dynamic-rules.yaml
|
sed -i --regexp-extended "s/^(.*: )(Host.*$)/\1'\2'/g" traefik/custom/dynamic-rules.yaml
|
||||||
|
# Add double quotes around the backend traefik service
|
||||||
sed -i --regexp-extended "s/^(.*url: )(.*$)/\1\"\2\"/g" traefik/custom/dynamic-rules.yaml
|
sed -i --regexp-extended "s/^(.*url: )(.*$)/\1\"\2\"/g" traefik/custom/dynamic-rules.yaml
|
||||||
|
|
||||||
rm -f traefik/custom/dynamic-rules-old.yaml
|
rm -f traefik/custom/dynamic-rules-old.yaml
|
||||||
|
|
Loading…
Reference in New Issue