diff options
Diffstat (limited to 'sampleconfig')
| -rw-r--r-- | sampleconfig/certbot/.gitkeep | 1 | ||||
| -rw-r--r-- | sampleconfig/index.js | 74 | ||||
| -rw-r--r-- | sampleconfig/liquid/elements.conf | 18 | ||||
| -rw-r--r-- | sampleconfig/lnd/lnd.conf | 25 | ||||
| -rw-r--r-- | sampleconfig/lnd/pwd | 1 | ||||
| -rw-r--r-- | sampleconfig/lnurl.js | 36 | ||||
| -rw-r--r-- | sampleconfig/nginx/default.conf.template | 38 |
7 files changed, 5 insertions, 188 deletions
diff --git a/sampleconfig/certbot/.gitkeep b/sampleconfig/certbot/.gitkeep deleted file mode 100644 index 8b137891..00000000 --- a/sampleconfig/certbot/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/sampleconfig/index.js b/sampleconfig/index.js index 3b2f9d02..8683bfa6 100644 --- a/sampleconfig/index.js +++ b/sampleconfig/index.js @@ -1,80 +1,16 @@ -import lnurl from "./lnurl"; - -const db = { - user: "root", - password: "password", - database: "coinos", - options: { - logging: false, - host: "maria", - dialect: "mariadb", - dialectOptions: { multipleStatements: true, timezone: "Etc/GMT+7" } - } -}; - -const btcasset = - "5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225"; - export default { - nostr: "http://api:9393", - relay: "ws://nostr:8080", - ipxapi: "4275|PqKjKaxIlzooToria2m4XFLzvHihSpsZMX4hvgxu", - webhooks: { - "http://172.18.0.1:5173/wallet/purchase": "horsey" - }, - postmark: "d64dffd2-84ea-47c7-ba9f-95505332d0ae", - db, - clientVersion: "3b96359d6a6ce68fe4a32f495fc9a6f78af0aa63", - lnurl, - knex: { - client: "mysql2", - connection: db - }, - jwt: Buffer.from( - "00d0ab4f7738a83feb37f661526512063c41e49278b7c32cba87314269a5788b", - "hex" - ), port: 3119, - taxi: "864234bccdd230ecb6db05ebdf5061c3af42fefb9f186b3326e6454fdd3a9475", + nostr: "ws://nostr:8080", + ipxapi: "4275|PqKjKaxIlzooToria2m4XFLzvHihSpsZMX4hvgxu", + postmark: "f64dffd2-84ea-47c7-ba9f-95e053a2d0ae", + jwt: "00d0ab4f7738a83feb37f661526512063c41e49278b7c32cba87314269a5788b", bitcoin: { - masterkey: - "tprv8ZgxMBicQKsPdTUoagV41nang9pQUA2DKoVWLmTrWmb2PfsC8pDTHveCMyzUyMguKJCjd5uyHcqg27r7gDzz4TY3MgucpLsSXwCbjn2C3Q1", host: "bitcoin", wallet: "coinos", username: "admin1", password: "123", network: "regtest", port: 18443, - zmqrawblock: "tcp://bitcoin:18506", - zmqrawtx: "tcp://bitcoin:18507" - }, - liquid: { - masterkey: - "tprv8ZgxMBicQKsPfBjZp16yQUmZM3DWh5fb366inBXF3Xk6ANhJYqxXYL4FeQxAW5kjT3ku1A1wmS79c5y6RajKr2TkCADG8A3h4WdggbFMXX1", - blindkey: - "099e599b1d79dbc536c6f8461772d7f2f9583d7b6f3fba70394d60b599c3bd96", - host: "liquid", - username: "admin1", - password: "123", - network: "regtest", - wallet: "coinos", - port: 7040, - zmqrawblock: "tcp://liquid:18606", - zmqrawtx: "tcp://liquid:18607", - btcasset }, - lna: { - clightning: true, - dir: "/app/config/lightning/regtest/lightning-rpc" - /* - lnd: true - socket: "lnd:10009", - // get this with: sudo base64 config/lnd/tls.cert | tr -d '\n' - cert: - "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNLVENDQWMrZ0F3SUJBZ0lRVE4wWEhJdTI1eitKaUpmVUxSOTROVEFLQmdncWhrak9QUVFEQWpBNE1SOHcKSFFZRFZRUUtFeFpzYm1RZ1lYVjBiMmRsYm1WeVlYUmxaQ0JqWlhKME1SVXdFd1lEVlFRREV3d3haREkyWVRkagpObUZqTVRZd0hoY05Nakl3TlRFMU1qSTFOVFEyV2hjTk1qTXdOekV3TWpJMU5UUTJXakE0TVI4d0hRWURWUVFLCkV4WnNibVFnWVhWMGIyZGxibVZ5WVhSbFpDQmpaWEowTVJVd0V3WURWUVFERXd3eFp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cmVhZBIFd3JpdGUaFAoFcGVlcnMSBHJlYWQSBXdyaXRlGhgKBnNpZ25lchIIZ2VuZXJhdGUSBHJlYWQAAAYgR93/t3TVABMMqjYOdcYG/B70ZczhSoLXVT7NlocedG0=" - */ - } + lightning: "/app/config/lightning/regtest/lightning-rpc" }; diff --git a/sampleconfig/liquid/elements.conf b/sampleconfig/liquid/elements.conf deleted file mode 100644 index 3aa177d0..00000000 --- a/sampleconfig/liquid/elements.conf +++ /dev/null @@ -1,18 +0,0 @@ -chain=liquidregtest -listen=1 -txindex=1 - -[liquidregtest] -rpcuser=admin1 -rpcpassword=123 -rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0 -rpcwallet=coinos - -validatepegin=0 -initialfreecoins=2100000000000000 -wallet=coinos -wallet=external - -zmqpubrawblock=tcp://0.0.0.0:18606 -zmqpubrawtx=tcp://0.0.0.0:18607 diff --git a/sampleconfig/lnd/lnd.conf b/sampleconfig/lnd/lnd.conf deleted file mode 100644 index a979284a..00000000 --- a/sampleconfig/lnd/lnd.conf +++ /dev/null @@ -1,25 +0,0 @@ -externalip=lnd:9735 -alias=coinos -color=#FF3200 -tlsextradomain=lnd -listen=0.0.0.0:9735 -rpclisten=0.0.0.0:10009 -restlisten=0.0.0.0:8080 -accept-amp=1 -accept-keysend=1 - -# uncomment this after lnd wallet is initialized -# wallet-unlock-password-file=/root/.lnd/pwd - -[Bitcoin] -bitcoin.active=1 -bitcoin.node=bitcoind -bitcoin.regtest=1 - -[Bitcoind] -bitcoind.rpchost=bitcoin -bitcoind.dir=/root/.bitcoin -bitcoind.rpcuser=admin1 -bitcoind.rpcpass=123 -bitcoind.zmqpubrawblock=tcp://bitcoin:18506 -bitcoind.zmqpubrawtx=tcp://bitcoin:18507 diff --git a/sampleconfig/lnd/pwd b/sampleconfig/lnd/pwd deleted file mode 100644 index f3097ab1..00000000 --- a/sampleconfig/lnd/pwd +++ /dev/null @@ -1 +0,0 @@ -password diff --git a/sampleconfig/lnurl.js b/sampleconfig/lnurl.js deleted file mode 100644 index b101e23c..00000000 --- a/sampleconfig/lnurl.js +++ /dev/null @@ -1,36 +0,0 @@ -import fs from "fs"; - -export default { - host: "app", - port: 3118, - protocol: "http", - url: "https://staging.coinos.io", - endpoint: "/lnurl", - listen: true, - auth: { - apiKeys: [ - { - id: "50bdeb634d", - key: "ac9bdd15a983072311c74c13877d122f16a27a8f40cb4dfa5014eece4da5cda2" - } - ] - }, - lightning: { - backend: "c-lightning", - config: { - unixSockPath: "/app/config/lightning/regtest/lightning-rpc" - } - }, - store: { - backend: "knex", - config: { - client: "mysql", - connection: { - host: "maria", - user: "root", - password: "password", - database: "coinos" - } - } - } -}; diff --git a/sampleconfig/nginx/default.conf.template b/sampleconfig/nginx/default.conf.template deleted file mode 100644 index 453f368f..00000000 --- a/sampleconfig/nginx/default.conf.template +++ /dev/null @@ -1,38 +0,0 @@ -server { - listen 80; - server_name .${NGINX_HOST}; - server_tokens off; - - location @rewrites { - rewrite ^(.+)$ /index.html last; - } - - location / { - root /coinos; - index index.html; - try_files $uri $uri/ /index.html; - } - - location /api/ { - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Proto https; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header X-Forwarded-Host $remote_addr; - rewrite ^ $request_uri?; - rewrite ^/api/(.*) /$1 break; - return 400; - proxy_pass http://app:3119$uri$is_args; - } - - location /ws { - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_http_version 1.1; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $host; - rewrite ^/ws/(.*) /$1 break; - - proxy_pass http://app:3119; - } -} |
