updated tools folder, fixed openresty conf
This commit is contained in:
0
Server/Tools/adduser
Normal file → Executable file
0
Server/Tools/adduser
Normal file → Executable 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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user