Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.14 KB

INSTALL.md

File metadata and controls

49 lines (36 loc) · 1.14 KB

INSTALL - CASSH Server WebUI

Docker

# Optionnal: Build image
# docker build . -t nbeguier/cassh-web

# Run an example web server
docker run -it --rm \
    -v $PWD/settings.txt.sample:/opt/cassh/settings.txt \
    -v /etc/ssl/certs/ssl-cert-snakeoil.pem:/etc/ssl/certs/ssl-cert-snakeoil.pem:ro \
    -v /etc/ssl/private/ssl-cert-snakeoil.key:/etc/ssl/private/ssl-cert-snakeoil.key:ro \
    -p 8443:8443 \
    nbeguier/cassh-web

# Go to https://0.0.0.0:8443/

From scratch

pip install -U pip
pip install -r requirements.txt
cp settings.txt.sample settings.txt
# Edit this file
python cassh_web.py

# Go to https://0.0.0.0:8443/

Configuration

You can you the settings.txt file, but you can also override them via environment variables.

Example:

docker run -it --rm \
    -v $PWD/settings.txt.sample:/opt/cassh/settings.txt \
    -v /etc/ssl/certs/ssl-cert-snakeoil.pem:/etc/ssl/certs/ssl-cert-snakeoil.pem:ro \
    -v /etc/ssl/private/ssl-cert-snakeoil.key:/etc/ssl/private/ssl-cert-snakeoil.key:ro \
    -p 8443:8443 \
    -e LOGIN_BANNER="TEST via docker run"
    nbeguier/cassh-web

# Go to https://0.0.0.0:8443/