Add 404 to dev proxy
This commit is contained in:
parent
4d9365e411
commit
8325f74371
@ -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
|
||||
|
||||
@ -11,7 +11,8 @@
|
||||
output stdout
|
||||
}
|
||||
|
||||
respond "Site is not registered with proxy."
|
||||
root * /code/errorPages/siteNotFound
|
||||
file_server
|
||||
}
|
||||
|
||||
{{ if $hosts }}
|
||||
|
||||
BIN
dev-proxy/src/errorPages/siteNotFound/gopher.gif
Normal file
BIN
dev-proxy/src/errorPages/siteNotFound/gopher.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 242 KiB |
38
dev-proxy/src/errorPages/siteNotFound/index.html
Normal file
38
dev-proxy/src/errorPages/siteNotFound/index.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user