update
This commit is contained in:
parent
33fdc1396c
commit
dd89a3c577
@ -2022,7 +2022,7 @@ To begin using the Command Line Uploader Tool, users first need to generate an u
|
|||||||
Once the key is generated, users can install the uploader tool on their local system with the following command:
|
Once the key is generated, users can install the uploader tool on their local system with the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -s https://files.ssh.surf/uploadInstall)
|
bash <(curl -s https://files.yourdomain.com/uploadInstall)
|
||||||
```
|
```
|
||||||
|
|
||||||
This installation script creates two utilities:
|
This installation script creates two utilities:
|
||||||
@ -2043,7 +2043,7 @@ read -p "SSHID: " SSHID
|
|||||||
read -p "KEY: " KEY
|
read -p "KEY: " KEY
|
||||||
|
|
||||||
sudo touch /usr/bin/sshup
|
sudo touch /usr/bin/sshup
|
||||||
sudo printf "#/bin/bash\ncurl -o /tmp/_bu.tmp -# \"https://up.ssh.surf/?cid=$SSHID&key=$KEY\" -F myFile=@\$1 && cat /tmp/_bu.tmp && rm /tmp/_bu.tmp" > /usr/bin/sshup
|
sudo printf "#/bin/bash\ncurl -o /tmp/_bu.tmp -# \"https://up.yourdomain.com/?cid=$SSHID&key=$KEY\" -F myFile=@\$1 && cat /tmp/_bu.tmp && rm /tmp/_bu.tmp" > /usr/bin/sshup
|
||||||
sudo printf "find . -maxdepth 1 -type f -exec sshup {} \;" > /usr/bin/sshup-all
|
sudo printf "find . -maxdepth 1 -type f -exec sshup {} \;" > /usr/bin/sshup-all
|
||||||
sudo chmod +x /usr/bin/sshup
|
sudo chmod +x /usr/bin/sshup
|
||||||
sudo chmod +x /usr/bin/sshup-all
|
sudo chmod +x /usr/bin/sshup-all
|
||||||
@ -2079,8 +2079,8 @@ require('dotenv').config();
|
|||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
var https = require('https');
|
var https = require('https');
|
||||||
var privateKey = fs.readFileSync('/home/raven/ssls/ssh.surf.key', 'utf8');
|
var privateKey = fs.readFileSync('/your/path/to/file.key', 'utf8');
|
||||||
var certificate = fs.readFileSync('/home/raven/ssls/ssh.surf.crt', 'utf8');
|
var certificate = fs.readFileSync('/your/path/to/file.crt', 'utf8');
|
||||||
var credentials = { key: privateKey, cert: certificate };
|
var credentials = { key: privateKey, cert: certificate };
|
||||||
|
|
||||||
const mysql = require('mysql2');
|
const mysql = require('mysql2');
|
||||||
|
Loading…
Reference in New Issue
Block a user