4 changed files with 28 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||
# Using the Nginx S2I Image |
|||
|
|||
```sh |
|||
oc new-app nginx~https://github.com/nmasse-itix/OpenShift-Examples.git --context-dir=Nginx-S2I-Image --name hello-world |
|||
``` |
|||
@ -0,0 +1,17 @@ |
|||
<html> |
|||
<body> |
|||
<pre id="log"> |
|||
</pre> |
|||
<script language="javascript"> |
|||
function reqListener () { |
|||
var log = document.getElementById("log"); |
|||
log.innerText = this.responseText; |
|||
} |
|||
|
|||
var oReq = new XMLHttpRequest(); |
|||
oReq.addEventListener("load", reqListener); |
|||
oReq.open("GET", "/response.json"); |
|||
oReq.send(); |
|||
</script> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,3 @@ |
|||
http { |
|||
keepalive_timeout 0; |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"message": "Hello, World!" |
|||
} |
|||
Loading…
Reference in new issue