Skip to content

Conversation

@dni
Copy link
Member

@dni dni commented Jan 9, 2026

closes #119
closes #5

adds an optional domain field and uses it for lnurl if set, else it falls back to current host like we had.

screenshot-1767943008

redirect required for static urls, example nginx redirect. now you can run your lnbits on https://test.b1tco1n.org but have a lightning address on b1tco1n.org and still run something else on https://b1tco1n.org/ you could also run multiple domains on lnbits and have different domains for different links.

server {
  server_name b1tco1n.org;
  root /var/www/b1tco1n;
  index index.html;
  location ^~ /.well-known/ {
      return 301 https://test.b1tco1n.org$request_uri;
  }
  location / {
    try_files $uri $uri/ =404;
  }
    listen 443 ssl; # managed by certbot
    ssl_certificate /etc/letsencrypt/live/b1tco1n.org/fullchain.pem; # managed by certbot
    ssl_certificate_key /etc/letsencrypt/live/b1tco1n.org/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
}
server {
    if ($host = b1tco1n.org) {
        return 301 https://$host$request_uri;
    } # managed by certbot
  server_name b1tco1n.org;
    listen 80;
    return 404; # managed by certbot
}

@DoktorShift
Copy link

We MUST ship this with additional docs. Else the new "domain" field will cause upcoming confusion and errors.

Nginx config & Caddyfile config we need to provide in docs.

@dni dni force-pushed the feat/optional-domain branch from bdf5920 to ce8d613 Compare January 15, 2026 08:12
@dni dni merged commit 17135b4 into main Jan 15, 2026
15 checks passed
@dni dni deleted the feat/optional-domain branch January 15, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Public Identity Domain for LNURLP-PayLinks Enable the binding of LN Addresses to one of a selection of registered subdomains

4 participants