Skip to content

Commit

Permalink
. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
akama-aka authored Jul 17, 2024
2 parents b92d1ef + 4a514a1 commit 6b647c7
Show file tree
Hide file tree
Showing 14 changed files with 347 additions and 406 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21-alpine
FROM node:current-alpine3.19
LABEL authors="Akama Aka"
LABEL org.opencontainers.image.licenses="CC-BY-NC-ND 4.0"
ENV VERSION=1.0.0.2 \
Expand Down
414 changes: 38 additions & 376 deletions LICENSE

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The system utilizes the following environment variables:
* `SERVER_HOSTNAME` - represents the hostname for the server.
* `SERVER_LOG_LEVEL` - determines the log level used by the server.
* `PATH_IDENTIFIER` - indicates the path name in the URL for which requests will be redirected to this server.
* `REDIS_HOST` - The hostname of your Redis Server

## Installation and setup

Expand Down Expand Up @@ -69,8 +70,21 @@ services:
- SERVER_HOSTNAME=127.0.0.1
- SERVER_LOG_LEVEL=info
- PATH_IDENTIFIER=akami-cgi
ports:
- 8080:8080
- REDIS_HOST=redis-server
ports:
- 8080:8080
depends_on:
redis-server:
condition: service_started
required: true
redis-server:
image: redis:7.2.4-alpine
ports:
- :6379
restart: always
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]

```
To start the Docker Compose stack use this command:
```shell
Expand Down
2 changes: 1 addition & 1 deletion html/accessForbidden.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/badGateway.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/directAccessForbidden.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/gatewayTimeout.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/internalServerError.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/noDatabaseConnection.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/pageNotFound.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/serviceUnavailable.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
2 changes: 1 addition & 1 deletion html/sslError.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h1>What you can do?</h1>
</div>
<div class="container" style="display:flex;justify-content: space-around;flex-direction: row;width:100%">
<div>
<b>CloudFlare Ray:</b>&nbsp;__implement-ray-id__
<b>Request ID:</b>&nbsp;__implement-ray-id__
</div>
<div>
<b>IP Address:</b>&nbsp;__implement-ip__
Expand Down
Loading

0 comments on commit 6b647c7

Please sign in to comment.