How To install Wekan with Nodejs Mongodb Nginx On Ubuntu 18.04 LTS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Wekan is a free, flexible and open source Kanban Board. With Wekan we can create boards and cards which can be moved between a number of columns. Wekan allows you to invite members to the board and assign tasks to a specific member.
Offcial Website: https://wekan.github.io/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit |IP address- 192.168.1.50 | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common net-tools git
useradd -m -s /bin/bash wekan
passwd wekan
su - wekan
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.bashrc
command -v nvm
nvm --version
nvm install v4.8
nvm use node
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 68818C72E52529D4
sudo echo "deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt update ; sudo apt install mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools
sudo systemctl start mongod ; sudo systemctl enable mongod
mongo
use admin
db.createUser({user:"admin", pwd:"admin123", roles:[{role:"root", db:"admin"}]})
exit
sudo nano /lib/systemd/system/mongod.service
ExecStart=/usr/bin/mongod --auth --config /etc/mongod.conf
sudo systemctl daemon-reload ; sudo service mongod restart
mongo -u admin -p admin123 --authenticationDatabase admin
mongo -u admin -p
use wekan
db.createUser(
{
user: "wekan",
pwd: "StrongPassword",
roles: ["readWrite"]
}
)
wget https://github.com/wekan/wekan/releases/download/v0.63/wekan-0.63.tar.gz
tar xf wekan-0.63.tar.gz ; cd bundle/programs/server
npm install
export MONGO_URL='mongodb://wekan:StrongPassword@localhost:27017/wekan?authSource=wekan'
export ROOT_URL='http://localhost'
export MAIL_URL='smtp://user:pass@127.0.0.1:25/'
export MAIL_FROM='wekan@127.0.0.1'
export PORT=8000
cd ~/bundle
node main.js
npm install forever -g
forever start main.js
sudo apt install nginx -y
sudo nano /etc/nginx/sites-available/wekan
server {
server_name www.yourdomain.com;
listen 80;
access_log /var/log/nginx/wekan-access.log;
error_log /var/log/nginx/wekan-error.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_pass http://127.0.0.1:8000;
}
}
sudo ln -s /etc/nginx/sites-available/wekan /etc/nginx/sites-enabled/
sudo rm /etc/nginx/sites-enabled/default
sudo nginx -t ; sudo echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; sudo systemctl restart nginx ; sudo systemctl enable nginx
http://www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment