Created
January 8, 2020 03:07
-
-
Save tonejito/1eb82e8b6f42a26e661787e4c2f38f47 to your computer and use it in GitHub Desktop.
just a @nginx mockup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/html; | |
index index.html index.htm index.nginx-debian.html; | |
server_name _; | |
location / { | |
return 200 "<html><body><h1>It works</h1></body></html>"; | |
add_header Content-Type text/html; | |
} | |
location /httpinvoke { | |
return 200 '{"type":null,"result":null}'; | |
add_header Content-Type application/json; | |
} | |
location /elbhealthcheck { | |
return 200 '{"statusMessage":"I\'M A HEALTHY SERVLET!","primedAt":"21-12-2020 23:59:59.99 PST","currentTime":"31-01-2020 23:59:59.99 PST"}'; | |
add_header Content-Type application/json; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment