File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
src/backend/shell_scripts Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# This script takes in 3 command line arguments
4
4
5
- FULLCHAIN_LOCATION=$( cat ../.env | grep FULLCHAIN_LOCATION= | cut -d ' =' -f2)
6
- PRIVKEY_LOCATION=$( cat ../.env | grep PRIVKEY_LOCATION= | cut -d ' =' -f2)
7
-
8
5
# Check if the number of arguments is correct
9
6
id -u
10
7
if [ " $# " -ne 3 ]; then
@@ -65,8 +62,8 @@ elif [ "$arg1" = "-p" ]; then
65
62
}
66
63
charset utf-8;
67
64
client_max_body_size 20M;
68
- ssl_certificate $FULLCHAIN_LOCATION ;
69
- ssl_certificate_key $PRIVKEY_LOCATION ;
65
+ ssl_certificate /etc/letsencrypt/live/domains.mdgspace.org-0002/fullchain.pem ;
66
+ ssl_certificate_key /etc/letsencrypt/live/domains.mdgspace.org-0002/privkey.pem ;
70
67
include /etc/letsencrypt/options-ssl-nginx.conf;
71
68
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
72
69
}" > /etc/nginx/sites-available/$arg3 .conf;
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ resource=$3
6
6
exp_port=$4
7
7
max_mem=$5
8
8
9
- FULLCHAIN_LOCATION=$( cat ../.env | grep FULLCHAIN_LOCATION= | cut -d ' =' -f2)
10
- PRIVKEY_LOCATION=$( cat ../.env | grep PRIVKEY_LOCATION= | cut -d ' =' -f2)
11
-
12
9
available_ports=()
13
10
14
11
for (( port= PORT_MIN; port<= PORT_MAX; port++ )) ; do
@@ -58,8 +55,8 @@ sudo echo "# Virtual Host configuration for $2
58
55
}
59
56
charset utf-8;
60
57
client_max_body_size 20M;
61
- ssl_certificate $FULLCHAIN_LOCATION ;
62
- ssl_certificate_key $PRIVKEY_LOCATION ;
58
+ ssl_certificate /etc/letsencrypt/live/domains.mdgspace.org-0002/fullchain.pem ;
59
+ ssl_certificate_key /etc/letsencrypt/live/domains.mdgspace.org-0002/privkey.pem ;
63
60
include /etc/letsencrypt/options-ssl-nginx.conf;
64
61
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
65
62
}" > /etc/nginx/sites-available/$2 .conf
You can’t perform that action at this time.
0 commit comments