zaply/main.go

26 lines
539 B
Go
Raw Normal View History

2024-12-26 22:46:18 +00:00
package main
import (
2024-12-26 23:34:56 +00:00
"fmt"
2024-12-26 22:46:18 +00:00
"log"
"github.com/ekzyis/zaply/env"
2024-12-26 23:34:56 +00:00
"github.com/ekzyis/zaply/lnurl"
2024-12-26 22:46:18 +00:00
"github.com/ekzyis/zaply/server"
)
func main() {
if err := env.Load(); err != nil {
log.Fatalf("error loading env: %v", err)
}
env.Parse()
2024-12-26 23:34:56 +00:00
log.Printf("url: %s", env.PublicUrl)
2024-12-26 22:46:18 +00:00
log.Printf("commit: %s", env.CommitShortSha)
log.Printf("phoenixd: %s", env.PhoenixdURL)
2024-12-26 23:34:56 +00:00
log.Printf("lnurl: %s", lnurl.Encode(fmt.Sprintf("%s/.well-known/lnurlp/%s", env.PublicUrl, "ekzyis")))
2024-12-26 22:46:18 +00:00
s := server.NewServer()
s.Start(":4444")
}