release v2

This commit is contained in:
mercury
2023-01-20 21:47:27 +04:00
parent 75fb0bbc6c
commit 66ac1d5285
4 changed files with 32 additions and 20 deletions
-2
View File
@@ -1,5 +1,3 @@
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -keyout /certs/self_private -out /certs/self_public -subj "/C=NN/ST=N/L=N/O=N/CN=$(curl https://ipinfo.io/ip)"
ssh-keygen -m PEM -t rsa -f /ssh/key -N ''
cat /ssh/key.pub > /root/.ssh/authorized_keys
service ssh start
nginx -g "daemon off;"
+2
View File
@@ -1,3 +1,5 @@
ssh-keygen -m PEM -t rsa -f /ssh/key -N ''
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -keyout /certs/self_private -out /certs/self_public -subj "/C=NN/ST=N/L=N/O=N/CN=$(curl https://ipinfo.io/ip)"
php init.php
unitd --log /logs/unit_error
curl -X PUT --data-binary @/config/unit.json --unix-socket /var/run/control.unit.sock http://localhost/config