Skip to content

An implementation of lsat-middleware through Gin to demonstrate serving of static files and creating a paywall for paid resources.

Notifications You must be signed in to change notification settings

getAlby/lsat-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gin-LSAT Proxy

An implementation of lsat-middleware middleware using Gin to demonstrate serving of static files and creating a paywall for paid resources.

Steps to run:-

  1. Clone the repo.
  2. In the repo folder, run the command:-
    go get .
  3. Create .env file (refer .env_example) and configure LND_ADDRESS and MACAROON_HEX for LND client or LNURL_ADDRESS for LNURL client, LN_CLIENT_TYPE (out of LND, LNURL), ROOT_KEY (for minting macaroons) and PORT.
  4. To start the server, run:-
    go run .

About

An implementation of lsat-middleware through Gin to demonstrate serving of static files and creating a paywall for paid resources.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages