Do not cache not found site fallback

This commit is contained in:
Arnie 2020-11-22 14:01:18 +01:00
parent 8325f74371
commit 527da6d5a7
3 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,7 @@ init() {
}
makePrivate() {
docker pull ${IMAGE_NAME}:${IMAGE_VERSION} || return $?
# docker pull ${IMAGE_NAME}:${IMAGE_VERSION} || return $?
NETWORKS=(${PROXY_NETWORK})
__createNetworks
@ -38,8 +38,6 @@ makePrivate() {
--net ${PROXY_NETWORK} \
${IMAGE_NAME}:${IMAGE_VERSION}
#-p 192.168.1.5:443:443 \
#-p 192.168.1.5:80:80 \
[[ $? -ne 0 ]] && return 1
__ask_to_start

View File

@ -44,7 +44,7 @@ VOLUME /etc/caddy
# Starting app:
ADD . /code
COPY [".", "/code"]
WORKDIR /code
ENTRYPOINT ["sh", "/code/docker-entrypoint.sh"]

View File

@ -13,6 +13,7 @@
root * /code/errorPages/siteNotFound
file_server
header Cache-Control "no-cache, max-age=0"
}
{{ if $hosts }}