updated tools folder, fixed openresty conf

This commit is contained in:
2021-01-16 02:35:04 +01:00
parent 88c86edefb
commit 97d79cdbcf
3 changed files with 4 additions and 2 deletions

0
Server/Tools/adduser Normal file → Executable file
View File

View File

@@ -8,7 +8,7 @@ events {
http {
include mime.types;
default_type application/octet-stream;
error_log /var/log/nginx/error.log;
error_log /var/log/nginx_error.log;
client_body_temp_path /var/run/openresty/nginx-client-body;
proxy_temp_path /var/run/openresty/nginx-proxy;

View File

@@ -32,6 +32,8 @@ systemctl enable openresty mongod
rm /etc/openresty/nginx.conf
wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/nginx.env -O /opt/ShellHub/nginx.env
mv config/openresty.conf /etc/openresty/nginx.conf
mkdir /var/run/openresty
echo "d /var/run/openresty 0755 root root - -" > /usr/lib/tmpfiles.d/php-custom.conf
echo " 127.0.0.1 ui api ssh mongo" > /etc/hosts
systemctl start openresty mongod
@@ -43,7 +45,7 @@ wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinServices/webui.t
chmod +x /opt/ShellHub/ShellHubAPI
chmod +x /opt/ShellHub/ShellHubSSH
tar -zxf /tmp/webui.tar.gz -C /opt/ShellHub/ui
mv Tools /opt/ShellHub/tools
mv Tools/* /opt/ShellHub/tools/
##Generating keys
openssl genrsa -out /opt/ShellHub/keys/api_private_key 2048