File tree 3 files changed +16
-12
lines changed
3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ NGINX Plus manages client requests based on service definitions provided by an e
11
11
This repo has been tested with:
12
12
13
13
- Linux VM
14
- - Docker- compose v2.20.2+
15
- - NGINX Plus R29 + license (` nginx-repo.crt ` and ` nginx-repo.key ` )
14
+ - Docker compose v2.20.2+
15
+ - NGINX Plus R33 + license (` nginx-repo.crt ` , ` nginx-repo.key ` and ` license.jwt ` )
16
16
17
17
## Current status / work in progress
18
18
@@ -64,7 +64,7 @@ To start the environment:
64
64
1 . Run the startup script: during its first run it will build all Docker images
65
65
66
66
```
67
- $ ./nginx-soap-rest.sh -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key
67
+ $ ./nginx-soap-rest.sh -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key -j ./license.jwt
68
68
[+] Running 6/6
69
69
[...]
70
70
✔ Network nginx-soap-rest_lab-network Created
Original file line number Diff line number Diff line change 1
- version : " 3.9"
2
-
3
1
services :
4
2
openldap :
5
3
container_name : openldap
@@ -71,6 +69,7 @@ services:
71
69
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
72
70
- ./nginx/soaprest.js:/etc/nginx/conf.d/soaprest.js:ro
73
71
- ./nginx/soaprest.conf:/etc/nginx/conf.d/soaprest.conf:ro
72
+ - ${NGINX_JWT}:/etc/nginx/license.jwt:ro
74
73
- /dev/null:/etc/nginx/conf.d/default.conf:ro
75
74
76
75
secrets :
Original file line number Diff line number Diff line change @@ -10,16 +10,17 @@ $0 [options]\n\n
10
10
-h\t\t\t- This help\n
11
11
-o [start|stop]\t- Start/stop the lab\n
12
12
-C [file.crt]\t\t- Certificate file to pull packages from the official NGINX repository\n
13
- -K [file.key]\t\t- Key file to pull packages from the official NGINX repository\n\n
13
+ -K [file.key]\t\t- Key file to pull packages from the official NGINX repository\n
14
+ -j [license.jwt]\t- JWT license for NGINX Plus R33+\n\n
14
15
=== Examples:\n\n
15
16
Lab start:\n
16
- \t$0 -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key\n\n
17
+ \t$0 -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key -j ./license.jwt \n\n
17
18
Lab stop:\n
18
19
\t$0 -o stop\n\n
19
20
"
20
21
21
22
22
- while getopts ' ho:C:K:' OPTION
23
+ while getopts ' ho:C:K:j: ' OPTION
23
24
do
24
25
case " $OPTION " in
25
26
h)
35
36
K)
36
37
export NGINX_KEY=$OPTARG
37
38
;;
39
+ j)
40
+ export NGINX_JWT=$OPTARG
41
+ ;;
38
42
esac
39
43
done
40
44
46
50
47
51
case $MODE in
48
52
' start' )
49
- if [ -z " ${NGINX_CERT} " ] || [ -z " ${NGINX_KEY} " ]
53
+ if [ -z " ${NGINX_CERT} " ] || [ -z " ${NGINX_KEY} " ] || [ -z " ${NGINX_JWT} " ]
50
54
then
51
- echo " Missing NGINX Plus certificate/key"
55
+ echo " Missing NGINX Plus certificate/key/jwt license "
52
56
exit
53
57
fi
54
58
55
- DOCKER_BUILDKIT=1 docker- compose -p $PROJECT_NAME -f $DOCKERCOMPOSE up -d --remove-orphans
59
+ DOCKER_BUILDKIT=1 docker compose -p $PROJECT_NAME -f $DOCKERCOMPOSE up -d --remove-orphans
56
60
;;
57
61
' stop' )
58
62
export NGINX_CERT=" x"
59
63
export NGINX_KEY=" x"
60
- docker-compose -p $PROJECT_NAME -f $DOCKERCOMPOSE down
64
+ export NGINX_JWT=" x"
65
+ docker compose -p $PROJECT_NAME -f $DOCKERCOMPOSE down
61
66
;;
62
67
* )
63
68
echo " $0 [start|stop]"
You can’t perform that action at this time.
0 commit comments