You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7de67ac
Browse filesBrowse the repository at this point in the historyBrowse files
#### 1. Grant execute permission to the `cas_init_script.sh` file
88
+
89
+
Execute the following command
90
+
```shell
91
+
chmod +x cas_init_script.sh
92
+
```
93
+
94
+
#### 2. Modify the `docker-compose.yml` file
95
+
96
+
##### 2.1 Setting Environment Variables
97
+
Modify the `environment` field of the `cas-demo` container in the `docker-compose.yml` file
98
+
99
+
```yaml
100
+
environment:
101
+
- CAS_SERVER_NAME=
102
+
- SERVER_PORT=
103
+
```
104
+
105
+
If not set, the default is as follows
106
+
107
+
```yaml
108
+
environment:
109
+
- CAS_SERVER_NAME=http://localhost:8444
110
+
- SERVER_PORT=8444
111
+
```
112
+
113
+
##### 2.2 Modify the port mapping
114
+
115
+
Modify the `ports` field of the container in the `docker-compose.yml` file
116
+
117
+
If `SERVER_PORT` in step 1 is not the default value of 8444, then you need to change the port of the `cas-demo` container to the value of `SERVER_PORT`, noting that the container and host ports must be the same.
118
+
119
+
```yml
120
+
# open-oauth2playground container, you can modify it on your own
121
+
ports:
122
+
- "8080:80"
123
+
# cas-demo container
124
+
ports:
125
+
- "your_port:your_port"
126
+
```
127
+
128
+
#### 3. Modify the `cfg.json` configuration
129
+
130
+
Set the `cas server` domain name in the `endpoints` field in the `cfg.json` file to `CAS_SERVER_NAME` from step 1, or to `http://localhost:8444` if not set in step 1
0 commit comments