chore(traefik): move traefik config to traefik

Move codeflow traefik configuration template over to the traefik
template directory.
This commit is contained in:
Dan Anglin 2023-08-26 11:48:45 +01:00
parent 6a0325a0a1
commit 1758d5a85c
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
4 changed files with 3 additions and 8 deletions

View file

@ -31,9 +31,7 @@ RUN --mount=type=bind,source=.,target=/packages \
&& chown {{ .Forgejo.LinuxUID }}:{{ .Forgejo.LinuxUID }} {{ .Forgejo.AppIni }} \ && chown {{ .Forgejo.LinuxUID }}:{{ .Forgejo.LinuxUID }} {{ .Forgejo.AppIni }} \
&& chmod 0400 {{ .Forgejo.AppIni }} \ && chmod 0400 {{ .Forgejo.AppIni }} \
&& cp /packages/entrypoint.sh /usr/local/bin/entrypoint \ && cp /packages/entrypoint.sh /usr/local/bin/entrypoint \
&& chmod a+rx /usr/local/bin/entrypoint \ && chmod a+rx /usr/local/bin/entrypoint
&& cp /packages/dynamic_git.yaml {{ .Forgejo.Tmp }}/dynamic_git.yaml \
&& chown {{ .Forgejo.LinuxUID }}:{{ .FlowGID }} {{ .Forgejo.Tmp }}/dynamic_git.yaml
USER {{ .Forgejo.LinuxUID }}:{{ .FlowGID }} USER {{ .Forgejo.LinuxUID }}:{{ .FlowGID }}

View file

@ -16,11 +16,6 @@ if ! [ -d {{ .Forgejo.Custom }} ]; then
chmod 0500 {{ .Forgejo.Custom }} chmod 0500 {{ .Forgejo.Custom }}
fi fi
# Move the dynamic Traefik config to the shared volume.
if [ -f /flow/gitea/tmp/dynamic_git.yaml ]; then
mv /flow/gitea/tmp/dynamic_git.yaml {{ .Traefik.SharedMountPoint }}/dynamic/dynamic_git.yaml
fi
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
exec "$@" exec "$@"
else else

View file

@ -9,6 +9,8 @@ ADD dynamic_gotosocial.yaml /tmp/dynamic_gotosocial.yaml
ADD dynamic_woodpecker.yaml /tmp/dynamic_woodpecker.yaml ADD dynamic_woodpecker.yaml /tmp/dynamic_woodpecker.yaml
ADD dynamic_forgejo.yaml /tmp/dynamic_forgejo.yaml
ADD entrypoint.sh / ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh