readd global baseurl needed for lnurlp
This commit is contained in:
parent
e186422439
commit
d862598179
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ def create_app() -> FastAPI:
|
||||||
name="core_static",
|
name="core_static",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# needed for lnurlw?
|
||||||
|
# g().config = settings
|
||||||
|
g().base_url = f"http://{settings.host}:{settings.port}"
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware, allow_origins=["*"], allow_methods=["*"], allow_headers=["*"]
|
CORSMiddleware, allow_origins=["*"], allow_methods=["*"], allow_headers=["*"]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue