-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
init.sh
executable file
·43 lines (34 loc) · 1.07 KB
/
init.sh
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
#! /bin/bash
echo """
==================================================
Creating certificate for foo.test
==================================================
"""
mkcert foo.test
echo """
==================================================
Copying foo.test certificates to ./caddy/certs
==================================================
"""
cp ./foo.test.pem ./caddy/certs
cp ./foo.test-key.pem ./caddy/certs
echo """
==================================================
Copying foo.test certificates to ./caddy-gen/certs
==================================================
"""
cp ./foo.test.pem ./caddy-gen/certs
cp ./foo.test-key.pem ./caddy-gen/certs
echo """
==================================================
Copying foo.test certificates to ./nginx/certs
==================================================
"""
cp ./foo.test.pem ./nginx/certs/foo.test.crt
cp ./foo.test-key.pem ./nginx/certs/foo.test.key
echo """
==================================================
Add the following to /etc/hosts file:
127.0.0.1 foo.test
==================================================
"""