Skip to content

Commit 2eb3a3c

Browse files
committed
add default env vars and documentation
1 parent ac5a9c7 commit 2eb3a3c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@ COPY code/ /var/www/html/
1515
# Allow for a redirect folder
1616
# The ${REDIR_FOLDER} will be redirected to DocumentRoot
1717
ENV REDIR_FOLDER=tester
18+
ENV TZ=Europe/Athens
19+
ENV CAS_SERVER=localhost
20+
ENV CAS_CONTEXT=/cas
21+
ENV CAS_PORT=8443
22+
ENV CAS_VERSION=3.0
23+
ENV CAS_SERVICE_NAME=https://localhost
1824

1925
EXPOSE 80 443

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ Docker Hub image: [gunet/phpcas-tester](https://hub.docker.com/repository/docker
2020
* test/test
2121
* auser/auser
2222
* `variables.env`: Environment variables file By default, it is designed to assist the `docker-compose.test.yaml` stack
23-
- `DEBUG` variable sets debugging (mainly phpCAS debug)
23+
- `DEBUG` variable sets debugging (mainly phpCAS debug)
24+
25+
# Environment Variables
26+
* `CAS_SERVER`: The hostname of the CAS server (default `localhost`)
27+
* `CAS_CONTEXT`: The CAS context. In the case of `gunet/simple-cas` it will be `/cas`, while in the case of a regulat CAS it will be `./` (default `/cas`)
28+
* `CAS_PORT`: The port where the CAS server is listening to (default `8443`)
29+
* `CAS_VERSION`: The CAS protocol version (default `3.0`)
30+
* `CAS_SERVICE_NAME`: The service name to use for our service (default `https://localhost`)

0 commit comments

Comments
 (0)