Add 404 to dev proxy

This commit is contained in:
Arnie 2020-10-09 17:03:19 +02:00
parent 4d9365e411
commit 8325f74371
4 changed files with 43 additions and 1 deletions

View File

@ -31,12 +31,15 @@ makePrivate() {
--name ${SERVICE_NAME} \
-v /var/run/docker.sock:/tmp/docker.sock:ro \
-v dev-proxy:/root/.caddy \
-v ${SCRIPT_PATH}/src/errorPages:/errorPages \
--restart=unless-stopped \
-p 127.0.0.1:80:80 \
-p 127.0.0.1:443:443 \
--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

@ -11,7 +11,8 @@
output stdout
}
respond "Site is not registered with proxy."
root * /code/errorPages/siteNotFound
file_server
}
{{ if $hosts }}

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

File diff suppressed because one or more lines are too long