fix main merge missing settings

This commit is contained in:
Tiago vasconcelos 2022-09-21 18:40:46 +01:00 committed by dni ⚡
parent a932f8a3d0
commit c32e0cbecb

View File

@ -56,6 +56,11 @@ def create_app(config_object="lnbits.settings") -> FastAPI:
"url": "https://raw.githubusercontent.com/lnbits/lnbits-legend/main/LICENSE", "url": "https://raw.githubusercontent.com/lnbits/lnbits-legend/main/LICENSE",
}, },
) )
if lnbits.settings.LNBITS_ADMIN_UI:
g().admin_conf = conf
check_settings(app)
g().WALLET = WALLET
app.mount("/static", StaticFiles(packages=[("lnbits", "static")]), name="static") app.mount("/static", StaticFiles(packages=[("lnbits", "static")]), name="static")
app.mount( app.mount(
"/core/static", "/core/static",