littleshop/Hostinger/DEPLOY_TO_MATTERMOST.txt
SysAdmin e1b377a042 Initial commit of LittleShop project (excluding large archives)
- BTCPay Server integration
- TeleBot Telegram bot
- Review system
- Admin area
- Docker deployment configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-17 15:07:38 +01:00

121 lines
4.0 KiB
Plaintext

================================================================================
DEPLOY TO MATTERMOST - READY TO GO!
================================================================================
✅ **SLASH COMMAND CREATED**
Token: 7grgg4r7sjf4dx9qxa7wuybmnh
✅ **FILES UPDATED WITH CORRECT TOKEN**
mattermost_local_api.js now has the correct Mattermost token
================================================================================
DEPLOYMENT COMMANDS
================================================================================
🚀 **RUN THESE COMMANDS ON YOUR MATTERMOST SERVER:**
# 1. Setup directory
mkdir ~/btcpay-api
cd ~/btcpay-api
# 2. Copy files from this directory to your Mattermost server:
# - mattermost_local_api.js
# - vps_hardening_key
# - mattermost-local-package.json (rename to package.json)
# 3. Set permissions and install:
chmod 600 ./vps_hardening_key
npm install express
# 4. Update SSH key path in mattermost_local_api.js:
# Change line 25: ssh_key_path: '/home/your-user/btcpay-api/vps_hardening_key'
# 5. Test SSH connectivity:
ssh -i ./vps_hardening_key -p 2255 sysadmin@thebankofdebbie.giize.com "echo 'SSH test'"
# 6. Start the API:
node mattermost_local_api.js
# Expected output:
# 🚀 Mattermost BTCPay Local API running on localhost:3333
# 🎯 Target VPS: thebankofdebbie.giize.com:2255
# 🔑 Method: SSH-based command execution
================================================================================
MATTERMOST CONFIGURATION
================================================================================
✅ **SLASH COMMAND ALREADY CREATED**
Command: /btcpay
Token: 7grgg4r7sjf4dx9qxa7wuybmnh
URL: http://localhost:3333/btcpay
================================================================================
TESTING
================================================================================
🧪 **AFTER DEPLOYMENT, TEST:**
1. In Mattermost, type: `/btcpay`
2. Expected response:
```
## 🧅 BTCPay Tor Onion Addresses
🌐 Domain: https://thebankofdebbie.giize.com
🧅 Tor Hidden Services:
• BTCPay Server: gs76yqhlb4oysidnnswfoigxtwz3kmlmz4ekp2r6knmerpvsjdtbpxyd.onion
• Bitcoin P2P: p4gve626jjn73ia35ikr7zhnmwknokrzv2eb2gfbqlytlgbckhaeibyd.onion
📅 Retrieved: [timestamp]
👤 Requested by: bankofdebbie
```
🔧 **TROUBLESHOOTING:**
If `/btcpay` doesn't work:
1. Check API is running: `curl http://localhost:3333/health`
2. Test SSH: `ssh -i vps_key -p 2255 sysadmin@thebankofdebbie.giize.com "echo test"`
3. Check Mattermost logs for connection errors
================================================================================
SUCCESS INDICATORS
================================================================================
✅ **API Health Check Returns:**
{"status":"healthy","service":"Mattermost BTCPay Local API",...}
✅ **SSH Test Returns:**
"SSH test successful"
✅ **Mattermost `/btcpay` Returns:**
Formatted onion addresses and BTCPay information
================================================================================
FINAL STATUS
================================================================================
🎯 **YOUR INFRASTRUCTURE:**
🔐 **VPS (thebankofdebbie.giize.com):**
- BTCPay Server with Tor ✅
- Bitcoin pruned node (10GB max) ✅
- Maximum security hardening ✅
- No webhook ports exposed ✅
🤖 **Mattermost Integration:**
- Local API for SSH commands ✅
- Slash command configured ✅
- Secure onion address retrieval ✅
- No persistent connections ✅
🧅 **Live Onion Addresses:**
- BTCPay: gs76yqhlb4oysidnnswfoigxtwz3kmlmz4ekp2r6knmerpvsjdtbpxyd.onion
- Bitcoin: p4gve626jjn73ia35ikr7zhnmwknokrzv2eb2gfbqlytlgbckhaeibyd.onion
🚀 **READY FOR PRODUCTION BITCOIN PAYMENTS!**
================================================================================
Deploy the local API to your Mattermost server and test `/btcpay` command!