Docs
Docs
Requirements
2 vps
2 domains
Setting up btcpay
login to the server through ssh
// configure btcpay
export BTCPAY_HOST=domain1
export BTCPAYGEN_CRYPTO1=ltc
export NBITCOIN_NETWORK=mainnet
export BTCPAYGEN_LIGHTNING=
export BTCPAYGEN_REVERSEPROXY=nginx
Documentation 1
export BTCPAYGEN_ADDITIONAL_FRAGMENTS=opt-save-storage-xxs
// install btcpay
. ./[Link] -i
when this is complete just open the browser and access btcpay throguh
domain1 it will ask you to create your domain account
after that go to your btcpay account settings and create an api key ( full
permissions )
Documentation 2
source workenv/bin/activate
cd market/backend/
pip install -r [Link]
pip install gunicorn
Documentation 3
#sqlite
DATABASE = "postgresql"
DEBUG=True
# you can add as many domains you like domain1,domain2 ...
ALLOWED_HOSTS=domain2
# Database config
DB_NAME=tgbot
DB_USER=tguser
DB_PASSWORD=tgPass@123
DB_HOST=localhost
DB_PORT=5432
save it and run this ( make sure the virtual environment is active )
// scheduler
screen -R beat
cd /www/source
source workenv/bin/activate
cd backend/ecomBot
python -m celery -A ecomBot beat -l INFO --scheduler django_celery_beat.
schedulers:DatabaseScheduler
// worker
// we do the same for the worker
screen -R worker
cd /www/source
Documentation 4
source workenv/bin/activate
cd backend/ecomBot
python -m celery -A ecomBot worker -l INFO
Setup nginx
// edit conf
vim /www/source/backend/conf
// you will find this
server {
listen 8000; // this have it on 80 or ssl port depends on which port you w
ant to run the app
server_name domain2; // adjust this to your domain
client_max_body_size 5M;
Documentation 5
proxy_set_header X-Forwarded-Proto $scheme;
}
}
cp /www/source/market/backend/conf /etc/nginx/sites-available/site
ln -s /etc/nginx/sites-available /etc/nginx/sites-enable
sudo systemctl restart nginx
Documentation 6