mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
25 lines
619 B
Bash
Executable File
25 lines
619 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DOMAIN=example.com
|
|
EMAIL=info@example.com
|
|
|
|
# shellcheck disable=SC2035
|
|
docker run -it --rm -v "$(pwd)"/letsencrypt:/letsencrypt --user "$(id -u)":"$(id -g)" certbot/certbot certonly \
|
|
--config-dir /letsencrypt/config \
|
|
--work-dir /letsencrypt/work \
|
|
--logs-dir /letsencrypt/logs \
|
|
--manual \
|
|
--preferred-challenges=dns \
|
|
--email $EMAIL \
|
|
--agree-tos \
|
|
-d $DOMAIN \
|
|
-d *.$DOMAIN \
|
|
-d *.gitlab.$DOMAIN \
|
|
-d *.gitpod.$DOMAIN \
|
|
-d *.ws.gitpod.$DOMAIN
|
|
|
|
|
|
find letsencrypt/config/live -name "*.pem" -exec cp {} ./ \;
|
|
|
|
openssl dhparam -out dhparams.pem 2048
|