Install
warning
DaneeCloud is archived project. It is not recommended to use it. For more information click here
- Windows
- Linux
- Go to https://nodejs.org/ and download NodeJS (Minimum v18)
- Go to https://github.com/DaneeSkripter/DaneeCloud/releases and download source code of latest version.
- Then navigate to folder where you downloaded the code and run in that folder command prompt and run this command:
npm install
- After installing fill out config.json and .env
.env Template:
SESSION_SECRET= // Random string
mongo_srv= // Your MongoDB URL
smtp_username= // Username for SMTP user
smtp_password= // Password for SMTP user
smtp_host= // SMTP Host
smtp_port= // Port for SMTP
emailSender= // SMTP sender ([email protected])
CSRF_TOKEN= // Random 32 characters string
RCAPTCHA_SITE_KEY= // ReCaptcha Site Key (Not required)
config.json Template:
{
"cloudname": "",
"cloudurl": "",
"port": 5000,
"uploadsfolder": "/uploads/",
"logtofile": false,
"registerip": false,
"disableRegister": false,
"enableRecaptcha": false
}
Then run this command:
node index.js
That will run your cloud, enjoy!
- Update and upgrade
sudo apt update
sudo apt upgrade
- Install Git
sudo apt install git
- Install NodeJS v18
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install nodejs
You can check version of NodeJS by:
node -v
- Install latest version of DaneeCloud
git clone https://github.com/DaneeSkripter/DaneeCloud.git
- Install NPM packages:
cd DaneeCloud
npm install
- Fill config and .env file:
.env Template:
SESSION_SECRET= // Random string
mongo_srv= // Your MongoDB URL
smtp_username= // Username for SMTP user
smtp_password= // Password for SMTP user
smtp_host= // SMTP Host
smtp_port= // Port for SMTP
emailSender= // SMTP sender ([email protected])
CSRF_TOKEN= // Random 32 characters string
RCAPTCHA_SITE_KEY= // ReCaptcha Site Key (Not required)
config.json Template:
{
"cloudname": "",
"cloudurl": "",
"port": 5000,
"uploadsfolder": "/uploads/",
"logtofile": false,
"registerip": false,
"disableRegister": false,
"enableRecaptcha": false
}
```
7. Install PM2 (To keep your cloud alive):
```bash
npm install pm2 -g
- Then disconnect SSH and reconnect back, and run:
cd DaneeCloud
pm2 start index.js --name "Your cloud"
Now your cloud will be accessible on http://(yourserverip):(yourport) (If you set port as 80 you can use just http://(yourserverip)) Logs:
pm2 logs
Docs last update: 28.04.2024