improved readability
This commit is contained in:
parent
e8cff9b1d4
commit
3e889ae0c8
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
||||||
APP=jet-search
|
APP=jet-search
|
||||||
DOMAIN=jetsearch.com
|
DOMAIN=jetsearch.com
|
||||||
|
DNS="
|
||||||
|
zone \"$DOMAIN\" {
|
||||||
|
type master;
|
||||||
|
file \"/etc/bind/db.$DOMAIN\";
|
||||||
|
};"
|
||||||
|
|
||||||
cd dist
|
cd dist
|
||||||
docker build -t $APP .
|
docker build -t $APP .
|
||||||
|
@ -7,6 +12,6 @@ openssl genrsa -out /etc/ssl/private/$APP.key 2048
|
||||||
openssl req -new -key /etc/ssl/private/$APP.key -out /etc/ssl/certs/$APP.csr -config openssl.cnf
|
openssl req -new -key /etc/ssl/private/$APP.key -out /etc/ssl/certs/$APP.csr -config openssl.cnf
|
||||||
openssl x509 -req -in /etc/ssl/certs/$APP.csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$APP.crt -extfile openssl.cnf -extensions req_ext -days 500 -sha256
|
openssl x509 -req -in /etc/ssl/certs/$APP.csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$APP.crt -extfile openssl.cnf -extensions req_ext -days 500 -sha256
|
||||||
cp nginx.cnf /etc/nginx/sites-enabled/$APP
|
cp nginx.cnf /etc/nginx/sites-enabled/$APP
|
||||||
echo "\nzone \"$DOMAIN\" {\n type master;\n file \"/etc/bind/db.$DOMAIN\";\n};" | tee -a /etc/bind/named.conf.local
|
echo $DNS | tee -a /etc/bind/named.conf.local
|
||||||
cp zonefile.cnf /etc/bind/db.$DOMAIN
|
cp zonefile.cnf /etc/bind/db.$DOMAIN
|
||||||
docker run -p 5000:5000 --name $APP --restart always -d $APP
|
docker run -p 5000:5000 --name $APP --restart always -d $APP
|
||||||
|
|
Loading…
Reference in a new issue