Skip to content

Instantly share code, notes, and snippets.

@Funfun

Funfun/README.md

Created Nov 12, 2018
Embed
What would you like to do?
504 Gateway Demo
curl -iH "Host: delaymaster.local" http://127.0.0.1\?delay\=70s

returns

HTTP/1.1 504 Gateway Time-out
Server: nginx/1.14.1
Date: Mon, 12 Nov 2018 21:03:37 GMT
Content-Type: text/html
Content-Length: 183
Connection: keep-alive

<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.14.1</center>
</body>
</html>
version: '3'
services:
delaymaster:
image: tsyrenochirov/delaymaster
environment:
- VIRTUAL_HOST=delaymaster.local
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment