Ai
1 Star 1 Fork 0

gitee/jupyterhub-deploy-docker-localhost

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
create-certs.sh 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
Herman Tolentino 提交于 2021-09-28 10:33 +08:00 . updated scripts
#!/bin/bash
# Use self-signed certificate only for testing'
# 2021-09-27
source .env
if [[ ! -d secrets ]]; then
echo "Creating 'secrets' directory..."
mkdir -p secrets
fi
echo "JUPYTERHUB_SSL=$JUPYTERHUB_SSL"
case $JUPYTERHUB_SSL in
use_ssl_ss)
echo "Creating self-signed SSL certificate..."
export SSL_COUNTRY='US'
export SSL_STATE='GA'
export SSL_LOC='Atlanta'
export SSL_ORG='geeks'
export SSL_OU='geeks'
export SSL_CN='epispider.io'
echo "Generating self-signed certificates..."
openssl req -x509 -nodes -days 365 -newkey rsa:1024 \
-keyout secrets/jupyterhub.key -out secrets/jupyterhub.pem \
-subj "/C=$SSL_COUNTRY/ST=$SSL_STATE/L=$SSL_LOC/O=$SSL_ORG/OU=$SSL_OU/CN=$SSL_CN"
cp secrets/jupyterhub.key secrets/default.key
cp secrets/jupyterhub.pem secrets/default.pem
;;
use_ssl_le)
echo "LetsEncrypt SSL certificate will be created during LetsEncrypt container launch..."
echo "Run init.sh at the command line after buildhub.sh. You will be prompted to provide an admin password to execute init.sh."
;;
esac
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Microbion/jupyterhub-deploy-docker-localhost.git
git@gitee.com:Microbion/jupyterhub-deploy-docker-localhost.git
Microbion
jupyterhub-deploy-docker-localhost
jupyterhub-deploy-docker-localhost
master

搜索帮助