-
Notifications
You must be signed in to change notification settings - Fork 3
/
letsEncryptProductionCert
executable file
·88 lines (77 loc) · 2.52 KB
/
letsEncryptProductionCert
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env bash
echo "If run for the first time, please disable https 443 in nginx.conf."
echo "If the script has succefully run, enable https 443 in nginx.conf again."
mkdir -p ../volumes/nginx/letsencrypt/www
mkdir -p ../volumes/nginx/letsencrypt/lib
mkdir -p ../volumes/nginx/letsencrypt/etc
chmod -R a+rwx ../volumes/nginx/letsencrypt
docker build -t letsencrypt_img .
docker run --rm --name letsencrypt \
-p 1086:80 \
-v "$PWD/../volumes/nginx/letsencrypt/etc:/etc/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/lib:/var/lib/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/www:/var/www" \
letsencrypt_img \
certonly \
--authenticator webroot \
--webroot \
--webroot-path /var/www \
--agree-tos \
--text \
--non-interactive \
--renew-by-default \
--rsa-key-size 4096 \
-d eis-openbudgets.iais.fraunhofer.de \
-m maiklukasch@gmail.com
docker run --rm --name letsencrypt \
-p 1086:80 \
-v "$PWD/../volumes/nginx/letsencrypt/etc:/etc/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/lib:/var/lib/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/www:/var/www" \
letsencrypt_img \
certonly \
--authenticator webroot \
--webroot \
--webroot-path /var/www \
--agree-tos \
--text \
--non-interactive \
--renew-by-default \
--rsa-key-size 4096 \
-d microsite-obeu.iais.fraunhofer.de \
-m maiklukasch@gmail.com
docker run --rm --name letsencrypt \
-p 1086:80 \
-v "$PWD/../volumes/nginx/letsencrypt/etc:/etc/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/lib:/var/lib/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/www:/var/www" \
letsencrypt_img \
certonly \
--authenticator webroot \
--webroot \
--webroot-path /var/www \
--agree-tos \
--text \
--non-interactive \
--renew-by-default \
--rsa-key-size 4096 \
-d alignment-obeu.iais.fraunhofer.de \
-m maiklukasch@gmail.com
docker run --rm --name letsencrypt \
-p 1086:80 \
-v "$PWD/../volumes/nginx/letsencrypt/etc:/etc/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/lib:/var/lib/letsencrypt" \
-v "$PWD/../volumes/nginx/letsencrypt/www:/var/www" \
letsencrypt_img \
certonly \
--authenticator webroot \
--webroot \
--webroot-path /var/www \
--agree-tos \
--text \
--non-interactive \
--renew-by-default \
--rsa-key-size 4096 \
-d apps.openbudgets.eu \
-m liyakun127@gmail.com
#docker kill --signal=HUP dockerconfig_nginx_1