Comments (8)
Looks like it's working as expected. Are you trying to reach the lnurl-server from the public internet? It's recommended to run it behind an nginx (or other) reverse-proxy to handle TLS-termination at the host machine.
Try setting "host" equal to 0.0.0.0 and see if it works as you expect.
from lnurl-node.
I use a combination of docker and nginx to run lnurl servers in production. So I don't think it would help much for your situation. But you can have a look at the bleskomat-server project - it has example docker-compose files:
https://github.com/samotari/bleskomat-server
I suspect this is a networking issue in your Heroku setup.
What happens when you open a browser and type the host machine's IP address? Are you able to reach it?
from lnurl-node.
This is what I have in my config:
"protocol": "http",
"host": "0.0.0.0",
"port": "3000",
"url": "http://example.com:3000",
"endpoint": "/lnurl",
Afterwards the http://mydomain:3000/lnurl
should work.
Of course if you want HTTPS, you need to use nginx with letsencrypt:
Here's the config
server {
root /var/www/example.com/html;
index index.html;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:3000;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
from lnurl-node.
How are you running the server? CLI or API? And how are you providing the configuration options?
from lnurl-node.
I use API to create the server. Here is my configuration file
{
"host":"localhost",
"port":8080,
"protocol":"http",
"url": "My heroku server url",
"endpoint": "/lnurl-server",
"lightning": {
"backend": "lnd",
"config": {
"hostname": "XXX",
"cert": "XXX",
"macaroon": "XXX"
}
},
"store":{
"backend": "knex",
"config": {
"client": "mysql",
"connection": {
"host": "XXX",
"user": "XXX",
"password": "XXX",
"database": "XXX",
"port": 3306
}
}
}
}
from lnurl-node.
When checking the heroku logs on production shell, it throws this
2021-07-07T12:37:45.355460+00:00 app[web.1]: Lnurl server listening at http://localhost:8080
So I wonder lnurl server is hosted or not
from lnurl-node.
@chill117 It seems doesn't work. Can I see your config for the production server?
from lnurl-node.
@chill117 Thank you, I will take a look!
@prusnak Which hosting service do you use? Seems like Heroku does not allow sub domain
from lnurl-node.
Related Issues (20)
- Document useful hooks and events HOT 1
- Lightning Address support HOT 1
- Add more Lightning backends
- New, refactored middleware hooks HOT 1
- New option to set custom /status endpoint HOT 1
- "uses" in signed URL more than one time HOT 2
- Add new LN backend: c-lightning HOT 4
- LUD-08: Fast withdrawRequest
- LUD-09: successAction in payRequest HOT 1
- LUD-10: aes successAction in payRequest
- LUD-16: Lightning Address HOT 1
- LUD-17: New URI schema prefixes
- Investigate broken lnbits LN backend integration HOT 1
- Callback configuration missing HOT 1
- LNPAY and Coinos lightning backends are getting invalid response from the server.
- Planned v1.0.0 release
- Auth in serverless HOT 3
- LndBackend should not require cert HOT 4
- Connect multiple LND nodes for same LNUrl server
- enable nostr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lnurl-node.