mirror of
https://github.com/kasmtech/kasm-workspaces-dind.git
synced 2026-01-23 02:35:11 +00:00
adding logic to generate certs needed for wizard, minor readme updates
This commit is contained in:
parent
bee5226d95
commit
6d025db119
2 changed files with 8 additions and 2 deletions
|
|
@ -50,8 +50,8 @@ docker run -d \
|
|||
|
||||
| Parameter | Function |
|
||||
| :----: | --- |
|
||||
| `-p 443` | Kasm Workspaces web UI |
|
||||
| `-p 3000` | Kasm Installation and upgrade wizard |
|
||||
| `-p 443` | Kasm Workspaces web UI (HTTPS) |
|
||||
| `-p 3000` | Kasm Installation and upgrade wizard (HTTPS) |
|
||||
| `-v /kasm/local/storage:/opt` | Docker and Kasm Storage |
|
||||
| `-e KASM_PORT=443` | If not using port 443 this needs to be set to the port you are binding to (optional) |
|
||||
| `-e DOCKER_HUB_USERNAME=USER` | Dockerhub username for logging in on init (optional) |
|
||||
|
|
|
|||
|
|
@ -9,3 +9,9 @@ fi
|
|||
if [ ! -z "${DOCKER_HUB_USERNAME}" ]; then
|
||||
docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
|
||||
fi
|
||||
|
||||
# Setup wizard certs if needed
|
||||
if [ ! -f "/opt/kasm/certs/kasm_wizard.crt" ]; then
|
||||
mkdir -p /opt/kasm/certs
|
||||
openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout /opt/kasm/certs/kasm_wizard.key -out /opt/kasm/certs/kasm_wizard.crt -subj "/C=US/ST=VA/L=None/O=None/OU=DoFu/CN=$(hostname)/emailAddress=none@none.none"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue