Resolve go-imports meta tags
Maybe this is not the most elegant solution but it should work. We always need to display the same meta tags, Now I'm rewriting the requested route always to the main folder. This should be more dynamic in the future.
This commit is contained in:
Родитель
5972842630
Коммит
7d8ff6dc3d
|
@ -8,5 +8,7 @@ RUN apk update && \
|
|||
rm -rf \
|
||||
/var/cache/apk/*
|
||||
|
||||
CMD ["/usr/sbin/caddy", "-port", "80", "-root", "/srv/www"]
|
||||
ADD public /srv/www
|
||||
CMD ["/usr/sbin/caddy", "-conf", "/etc/caddy/caddy.conf"]
|
||||
|
||||
COPY docker/caddy.conf /etc/caddy/caddy.conf
|
||||
COPY public /srv/www
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
:80 {
|
||||
root /srv/www
|
||||
|
||||
rewrite {
|
||||
regexp /gitea/.+
|
||||
to /gitea
|
||||
}
|
||||
|
||||
rewrite {
|
||||
regexp /sdk/.+
|
||||
to /sdk
|
||||
}
|
||||
|
||||
rewrite {
|
||||
regexp /git/.+
|
||||
to /git
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче