Compare commits

...

1 Commits

Author SHA1 Message Date
f21e70669c Do not cache not found site fallback 2020-11-22 14:02:05 +01:00
4 changed files with 4 additions and 5 deletions

View File

@ -4,7 +4,7 @@ APP_NAME = dev-proxy
APP_VERSION = 2.0
all: build release
all: build tag release
build:

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 }}