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>
This commit is contained in:
2025-09-17 15:07:38 +01:00
parent bcca00ab39
commit e1b377a042
140 changed files with 32166 additions and 21089 deletions

View File

@@ -0,0 +1,29 @@
version: "3.6"
services:
bitcoind:
environment:
BITCOIN_EXTRA_ARGS: |
prune=10000
maxmempool=300
dbcache=1000
onlynet=onion
proxyrandomize=1
maxtxfee=0.1
disablewallet=1
btcpayserver_monero:
environment:
XMR_PRUNE_BLOCKCHAIN: 1
XMR_SYNC_PRUNED_BLOCKS: 1
XMR_MAX_CONNECTIONS_IN: 16
XMR_MAX_CONNECTIONS_OUT: 16
XMR_ENABLE_DNS_BLOCKLIST: 1
btcpayserver_monero_wallet:
environment:
MONERO_WALLET_RPC_BIND_IP: 0.0.0.0
MONERO_WALLET_RPC_BIND_PORT: 18083
MONERO_WALLET_RPC_USERNAME: rpc
MONERO_WALLET_RPC_PASSWORD: password
MONERO_DAEMON_ADDRESS: btcpayserver_monero:18081

View File

@@ -0,0 +1,20 @@
Monero Wallet Information
========================
Wallet Address:
49TnBo2VHbncxvrMFbX5uMS9mtAGkiG1L4N6i7MMz4MhA9AXfyRqBdmf1XrFtGXq2v2G72TNtiVFo2kot5SHnBBz3gwoMj9
RPC Credentials:
Username: rpc
Password: password
Wallet Files:
- btcpay (main wallet file)
- btcpay.keys (wallet keys)
- password.txt (contains: password)
Container: btcpayserver_monero_wallet
RPC Port: 18083
Note: This wallet was created on September 16, 2025 to fix the missing wallet issue in BTCPay Server.
The wallet files are stored in Docker volume: generated_xmr_wallet

View File

@@ -0,0 +1,171 @@
# BTCPay Server Restoration Guide
## Prerequisites
- Fresh Debian 13 server
- Root access
- At least 50GB free disk space
- Domain name pointed to server IP
## Restoration Steps
### 1. Initial Server Setup
```bash
# Login as root
ssh root@yourserver.com
# Update system
apt update && apt upgrade -y
# Install required packages
apt install -y git docker.io docker-compose curl
```
### 2. Copy Backup Files
```bash
# Copy this backup folder to server
scp -r btcpay-backup-20250916 root@yourserver.com:/root/
# Navigate to backup
cd /root/btcpay-backup-20250916
```
### 3. Install BTCPay Server
```bash
# Clone BTCPay Docker repository
git clone https://github.com/btcpayserver/btcpayserver-docker /opt/btcpayserver-docker
cd /opt/btcpayserver-docker
# Copy environment file
cp /root/btcpay-backup-20250916/.env /opt/.env
# Copy override file
cp /root/btcpay-backup-20250916/docker-compose.override.yml ./
# Update domain in .env if needed
nano /opt/.env
# Change BTCPAY_HOST to your new domain if different
```
### 4. Run BTCPay Setup
```bash
# Load environment
source /opt/.env
# Run setup
./btcpay-setup.sh -i
# This will:
# - Generate docker-compose configuration
# - Create necessary volumes
# - Start all containers
# - Setup SSL certificates
```
### 5. Restore Monero Wallet (if needed)
```bash
# Wait for containers to start
docker ps
# Create wallet password file
docker exec btcpayserver_monero_wallet sh -c 'echo "password" > /wallet/password.txt'
# Restart wallet container
docker restart btcpayserver_monero_wallet
# Verify wallet is running
docker logs btcpayserver_monero_wallet --tail 50
```
### 6. Configure BTCPay Store
1. Access BTCPay at https://yourdomain.com
2. Create admin account
3. Create store
4. Enable Bitcoin and install Monero plugin:
- Server Settings → Plugins → Install Monero plugin
- Restart BTCPay after plugin installation
5. Configure Monero wallet in store settings:
- Wallet Address: Use the address from monero-wallet-info.txt
- Or generate new wallet if preferred
### 7. Security Hardening
```bash
# Setup firewall
ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 2255/tcp # If using custom SSH port
ufw --force enable
# Change SSH port (optional)
sed -i 's/#Port 22/Port 2255/' /etc/ssh/sshd_config
systemctl restart ssh
# Install fail2ban
apt install -y fail2ban
systemctl enable fail2ban
systemctl start fail2ban
```
### 8. Verify Installation
```bash
# Check all containers running
docker ps
# Check Bitcoin sync status
docker logs generated_bitcoin_1 | grep -i "progress"
# Check Monero status
docker logs btcpayserver_monero | tail -20
# Check BTCPay logs
docker logs generated_btcpayserver_1 | tail -50
# Verify pruning is active
docker logs generated_bitcoin_1 | grep -i "prune"
```
## Important Notes
### Monero Wallet
The Monero wallet address in this backup is:
```
49TnBo2VHbncxvrMFbX5uMS9mtAGkiG1L4N6i7MMz4MhA9AXfyRqBdmf1XrFtGXq2v2G72TNtiVFo2kot5SHnBBz3gwoMj9
```
RPC Password: `password`
### Bitcoin Pruning
Bitcoin is configured to use maximum 10GB disk space. The configuration is in docker-compose.override.yml and will be applied automatically.
### Domain Changes
If restoring to a different domain:
1. Update BTCPAY_HOST in /opt/.env
2. Update REVERSEPROXY_DEFAULT_HOST in /opt/.env
3. Re-run: `./btcpay-setup.sh -i`
### Troubleshooting
**Monero wallet not connecting:**
```bash
docker exec btcpayserver_monero_wallet sh -c 'ls -la /wallet/'
docker restart btcpayserver_monero_wallet
```
**Bitcoin not pruning:**
```bash
# Verify override file is in place
cat /opt/btcpayserver-docker/docker-compose.override.yml
# Restart Bitcoin container
docker restart generated_bitcoin_1
```
**SSL certificate issues:**
```bash
# Force renewal
docker exec generated_letsencrypt-nginx-proxy-companion_1 /app/force_renew
```
## Support
For BTCPay Server support: https://docs.btcpayserver.org/
For Monero plugin: Check BTCPay Server Plugins documentation

View File

@@ -0,0 +1,56 @@
BTCPay Server System Information
================================
Date: September 16, 2025
Server Details:
- Host: srv1002428.hstgr.cloud (Hostinger VPS)
- Domain: thebankofdebbie.giize.com
- OS: Debian 13
- SSH Port: 2255
- Root Password: Th3fa1r13sd1d1t.
BTCPay Configuration:
- Version: 2.2.1
- Network: Mainnet
- Cryptocurrencies: Bitcoin (BTC), Monero (XMR)
- DOGE: Successfully removed (0 traces)
- Tor: Enabled with onion addresses
- SSL: Let's Encrypt certificate valid until Dec 10, 2025
Bitcoin Configuration:
- Pruning: Enabled (10GB max)
- Sync Status: 99.7% (as of backup)
- Network: Tor-only (onlynet=onion)
- Memory Pool: 300MB max
- DB Cache: 1GB
Monero Configuration:
- Plugin: Installed and configured
- Wallet: Created with RPC access
- Pruning: Enabled
- Daemon: Running and syncing
Docker Containers (11 running):
- generated_btcpayserver_1
- generated_bitcoin_1
- btcpayserver_monero
- btcpayserver_monero_wallet
- generated_postgres_1
- generated_nbxplorer_1
- generated_tor_1
- generated_nginx_1
- generated_letsencrypt-nginx-proxy-companion_1
- generated_docker-gen_1
- autoheal
Storage:
- VPS Total: 394GB
- Available: 239GB (after cleanup)
- Bitcoin Pruned: ~10GB
- Database: ~500MB
Security:
- UFW Firewall: Active (4 rules)
- Fail2Ban: Active (SSH jail)
- SSH: Key authentication on port 2255
- Tor: All crypto traffic routed through Tor