Skip to content

Instantly share code, notes, and snippets.

@tsyber1an
Created November 12, 2018 21:24
Show Gist options
  • Save tsyber1an/63d966993115c9df193c555bfeaae971 to your computer and use it in GitHub Desktop.
Save tsyber1an/63d966993115c9df193c555bfeaae971 to your computer and use it in GitHub Desktop.
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