redesigned
This commit is contained in:
parent
6750814646
commit
e8cff9b1d4
6 changed files with 12 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
|||
.venv/
|
||||
__pycache__
|
||||
jet-search.tar
|
||||
|
|
0
Dockerfile → dist/Dockerfile
vendored
0
Dockerfile → dist/Dockerfile
vendored
0
nginx.cnf → dist/nginx.cnf
vendored
0
nginx.cnf → dist/nginx.cnf
vendored
0
openssl.cnf → dist/openssl.cnf
vendored
0
openssl.cnf → dist/openssl.cnf
vendored
0
zonefile.cnf → dist/zonefile.cnf
vendored
0
zonefile.cnf → dist/zonefile.cnf
vendored
12
install.sh
Executable file
12
install.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
APP=jet-search
|
||||
DOMAIN=jetsearch.com
|
||||
|
||||
cd dist
|
||||
docker build -t $APP .
|
||||
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 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
|
||||
echo "\nzone \"$DOMAIN\" {\n type master;\n file \"/etc/bind/db.$DOMAIN\";\n};" | tee -a /etc/bind/named.conf.local
|
||||
cp zonefile.cnf /etc/bind/db.$DOMAIN
|
||||
docker run -p 5000:5000 --name $APP --restart always -d $APP
|
Loading…
Reference in a new issue