Skip to content

Commit a2d6b63

Browse files
committed
describe how to add basic auth to config server image
1 parent 5b7bd48 commit a2d6b63

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CommonTasks.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ To start a config server that registers itself with Eureka at startup (discovery
3535
docker run --rm -it --pull=always -p 8888:8888 --name steeltoe-config -e eureka.client.enabled=true steeltoe.azurecr.io/config-server
3636
```
3737

38+
To start a config server that requires basic authentication (and change username and password from the defaults of devuser/devpassword):
39+
40+
```shell
41+
docker run --rm -it --pull=always -p 8888:8888 --name steeltoe-config steeltoe.azurecr.io/config-server --auth.enabled=true --auth.username=username --auth.password=password
42+
```
43+
3844
### Run SCCS with Java
3945

4046
To run a Spring Cloud Config Server without Docker:
@@ -127,7 +133,7 @@ docker run --rm -it --pull=always -p 5432:5432 --name steeltoe-postgres -e POSTG
127133

128134
### Run RabbitMQ Server with Docker
129135

130-
> [!NOTE]
136+
> [!NOTE]
131137
> This image has the management plugin enabled and no credentials set.
132138
133139
```shell

0 commit comments

Comments
 (0)