mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-07 11:28:19 +02:00
readd global baseurl needed for lnurlp
This commit is contained in:
parent
e186422439
commit
d862598179
@ -58,6 +58,10 @@ def create_app() -> FastAPI:
|
||||
name="core_static",
|
||||
)
|
||||
|
||||
# needed for lnurlw?
|
||||
# g().config = settings
|
||||
g().base_url = f"http://{settings.host}:{settings.port}"
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware, allow_origins=["*"], allow_methods=["*"], allow_headers=["*"]
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user