chore(traefik): move traefik config to traefik
Move codeflow traefik configuration template over to the traefik template directory.
This commit is contained in:
parent
6a0325a0a1
commit
1758d5a85c
4 changed files with 3 additions and 8 deletions
|
@ -31,9 +31,7 @@ RUN --mount=type=bind,source=.,target=/packages \
|
|||
&& chown {{ .Forgejo.LinuxUID }}:{{ .Forgejo.LinuxUID }} {{ .Forgejo.AppIni }} \
|
||||
&& chmod 0400 {{ .Forgejo.AppIni }} \
|
||||
&& cp /packages/entrypoint.sh /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
|
||||
&& chmod a+rx /usr/local/bin/entrypoint
|
||||
|
||||
USER {{ .Forgejo.LinuxUID }}:{{ .FlowGID }}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@ if ! [ -d {{ .Forgejo.Custom }} ]; then
|
|||
chmod 0500 {{ .Forgejo.Custom }}
|
||||
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
|
||||
exec "$@"
|
||||
else
|
||||
|
|
|
@ -9,6 +9,8 @@ ADD dynamic_gotosocial.yaml /tmp/dynamic_gotosocial.yaml
|
|||
|
||||
ADD dynamic_woodpecker.yaml /tmp/dynamic_woodpecker.yaml
|
||||
|
||||
ADD dynamic_forgejo.yaml /tmp/dynamic_forgejo.yaml
|
||||
|
||||
ADD entrypoint.sh /
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
|
Loading…
Reference in a new issue