ssl support
This commit is contained in:
parent
8da601be0f
commit
33a3f1ebd6
3 changed files with 14 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
"repositories": [],
|
||||
"replace_repositories": "False",
|
||||
"keyrings": [],
|
||||
"packages": "nginx grub-pc linux-image-amd64 docker.io make curl",
|
||||
"packages": "nginx grub-pc linux-image-amd64 docker.io make curl openssl nano",
|
||||
"scripts": [
|
||||
"configs/scripts/install.sh",
|
||||
"configs/scripts/server.sh"
|
||||
|
|
|
@ -24,6 +24,14 @@ done
|
|||
|
||||
rm /mnt/etc/nginx/sites-enabled/default
|
||||
tar -xzf deployment.tar.gz -C '/mnt/root'
|
||||
chroot /mnt /bin/bash -c "cd /root/jet-search/ && make install"
|
||||
chroot /mnt /bin/bash -c "cd root && openssl genrsa -out ca.key 2048"
|
||||
chmod 400 /mnt/root/ca.key
|
||||
mkdir -p /mnt/etc/ssl/certs/
|
||||
mkdir -p /mnt/etc/ssl/private/
|
||||
chroot /mnt /bin/bash -c "openssl req -x509 -new -nodes -key ca.key -sha256 -days 1024 -out /mnt/etc/ssl/certs/ca.crt"
|
||||
chroot /mnt /bin/bash -c "chown -R www-data:www-data /etc/ssl/private/"
|
||||
chroot /mnt /bin/bash -c "chown -R www-data:www-data /etc/ssl/certs/"
|
||||
chmod 600 -R /mnt/etc/ssl/private/
|
||||
chmod 644 -R /mnt/etc/ssl/certs/jetsearch.com.crt
|
||||
|
||||
read a
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
"repositories": [],
|
||||
"replace_repositories": "False",
|
||||
"keyrings": [],
|
||||
"packages": "nginx grub-pc linux-image-generic",
|
||||
"packages": "nginx grub-pc linux-image-generic docker.io make curl openssl nano",
|
||||
"scripts": [
|
||||
"configs/scripts/install.sh",
|
||||
"configs/scripts/server.sh"
|
||||
],
|
||||
"package_manager": "apt",
|
||||
"extra_files": []
|
||||
"extra_files": [
|
||||
"downloads/deployment.tar.gz"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue