Skip to content

Commit 288c6ac

Browse files
committed
Add app platform support integration
1 parent 978ed7d commit 288c6ac

4 files changed

Lines changed: 492 additions & 11 deletions

File tree

.do/app.yaml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: lnp2pbot
2+
services:
3+
- name: bot
4+
source_dir: /
5+
github:
6+
repo: your-username/lnp2pbot
7+
branch: main
8+
deploy_on_push: true
9+
dockerfile_path: Dockerfile
10+
instance_count: 1
11+
instance_size_slug: basic-xxs
12+
envs:
13+
# Telegram Configuration
14+
- key: BOT_TOKEN
15+
scope: RUN_TIME
16+
type: SECRET
17+
18+
# Lightning Network Configuration
19+
- key: LND_CERT_BASE64
20+
scope: RUN_TIME
21+
type: SECRET
22+
- key: LND_MACAROON_BASE64
23+
scope: RUN_TIME
24+
type: SECRET
25+
- key: LND_GRPC_HOST
26+
scope: RUN_TIME
27+
value: "your-lnd-node:10009"
28+
29+
# Database Configuration
30+
- key: MONGO_URI
31+
scope: RUN_TIME
32+
type: SECRET
33+
34+
# Telegram Channels
35+
- key: CHANNEL
36+
scope: RUN_TIME
37+
value: "@your_orders_channel"
38+
- key: ADMIN_CHANNEL
39+
scope: RUN_TIME
40+
value: "@your_admin_channel"
41+
42+
# Bot Configuration
43+
- key: NODE_ENV
44+
scope: RUN_TIME
45+
value: "production"
46+
- key: LANGUAGE
47+
scope: RUN_TIME
48+
value: "en"
49+
- key: LNURL_PUBLIC_URL
50+
scope: RUN_TIME
51+
value: "https://your-app.ondigitalocean.app"
52+
53+
# Lightning Network Settings
54+
- key: INVOICE_EXPIRY_WINDOW
55+
scope: RUN_TIME
56+
value: "3600"
57+
- key: HOLD_INVOICE_EXPIRY_WINDOW
58+
scope: RUN_TIME
59+
value: "3600"
60+
- key: PENDING_PAYMENT_WINDOW
61+
scope: RUN_TIME
62+
value: "300"
63+
- key: MAX_ROUTING_FEE
64+
scope: RUN_TIME
65+
value: "100"
66+
- key: CLTV_DELTA
67+
scope: RUN_TIME
68+
value: "40"
69+
70+
# Trading Configuration
71+
- key: MAX_ORDERS_BY_USER
72+
scope: RUN_TIME
73+
value: "1"
74+
- key: ORDER_EXPIRY_WINDOW
75+
scope: RUN_TIME
76+
value: "3600"
77+
- key: FIAT_SENT_EXPIRY_WINDOW
78+
scope: RUN_TIME
79+
value: "7200"
80+
- key: MAX_PAYMENT_ATTEMPTS
81+
scope: RUN_TIME
82+
value: "3"
83+
- key: PAYMENT_ATTEMPTS_WINDOW
84+
scope: RUN_TIME
85+
value: "1800"
86+
87+
# Optional: Proxy Configuration
88+
# - key: SOCKS_PROXY_HOST
89+
# scope: RUN_TIME
90+
# value: "your-proxy-host:port"
91+
92+
# Optional: Nostr Integration
93+
# - key: NOSTR_PRIVATE_KEY
94+
# scope: RUN_TIME
95+
# type: SECRET
96+
# - key: NOSTR_RELAYS
97+
# scope: RUN_TIME
98+
# value: "wss://relay1.com,wss://relay2.com"
99+
100+
databases:
101+
- name: lnp2pbot-db
102+
engine: MONGODB
103+
version: "5"
104+
size: basic-xs

.dockerignore

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Build outputs
8+
dist/
9+
build/
10+
11+
# TypeScript
12+
*.tsbuildinfo
13+
14+
# Environment files
15+
.env
16+
.env.local
17+
.env.*.local
18+
.env-sample
19+
20+
# IDE files
21+
.vscode/
22+
.idea/
23+
*.swp
24+
*.swo
25+
*~
26+
27+
# OS files
28+
.DS_Store
29+
.DS_Store?
30+
._*
31+
.Spotlight-V100
32+
.Trashes
33+
ehthumbs.db
34+
Thumbs.db
35+
36+
# Git files
37+
.git/
38+
.gitignore
39+
.gitattributes
40+
41+
# CI/CD
42+
.github/
43+
.gitlab-ci.yml
44+
45+
# Documentation
46+
*.md
47+
!README.md
48+
docs/
49+
50+
# Test files
51+
tests/
52+
test/
53+
*.test.js
54+
*.test.ts
55+
*.spec.js
56+
*.spec.ts
57+
coverage/
58+
59+
# Logs
60+
logs/
61+
*.log
62+
63+
# Runtime data
64+
pids/
65+
*.pid
66+
*.seed
67+
*.pid.lock
68+
69+
# Coverage directory used by tools like istanbul
70+
coverage/
71+
.nyc_output
72+
73+
# Dependency directories
74+
.npm
75+
.eslintcache
76+
77+
# Optional npm cache directory
78+
.npm
79+
80+
# Optional REPL history
81+
.node_repl_history
82+
83+
# Output of 'npm pack'
84+
*.tgz
85+
86+
# Yarn Integrity file
87+
.yarn-integrity
88+
89+
# Docker files
90+
Dockerfile*
91+
.dockerignore
92+
docker-compose*.yml
93+
94+
# Deployment files
95+
.do/
96+
DEPLOY_*.md
97+
98+
# Local certificates (if any)
99+
*.pem
100+
*.key
101+
*.crt
102+
tls.cert
103+
admin.macaroon
104+
105+
# Temporary files
106+
tmp/
107+
temp/

0 commit comments

Comments
 (0)