Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@arcbtc
Copy link
Member

@arcbtc arcbtc commented Jan 30, 2024

LNBITS_ADMIN_UI has become the most important variable, so should be at the top of the file

@codecov
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f07b407) 59.24% compared to head (6a2dbc7) 59.26%.
Report is 7 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2226      +/-   ##
==========================================
+ Coverage   59.24%   59.26%   +0.02%     
==========================================
  Files          60       60              
  Lines        8992     8992              
==========================================
+ Hits         5327     5329       +2     
+ Misses       3665     3663       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@prusnak prusnak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that the section is just moved and its contents is not modified.

@dni
Copy link
Member

dni commented Feb 5, 2024

once again i use this opportunity to questions if admin_ui should be enabled by default, because i think it should be.

@arcbtc
Copy link
Member Author

arcbtc commented Feb 7, 2024

once again i use this opportunity to questions if admin_ui should be enabled by default, because i think it should be.

Its easy enough to enable on first launch with LNBITS_ADMIN_UI=false poetry run lnbits

I also feel we willl end up defaulting, but it should be a slow move, to encourage users to use.

# Enable Admin GUI, available for the first user in LNBITS_ADMIN_USERS if available
# Warning: Enabling this will make LNbits ignore this configuration file. Your settings will
# be stored in your database and you will be able to change them only through the Admin UI.
# Disable this to make LNbits use this config file again.
Copy link
Collaborator

@motorina0 motorina0 Feb 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some settings like DB connection, LNBITS_ADMIN_UI itself (and others) are always read from the environment variables (.env file or actual env vars).

These settings are grouped under the ReadOnlySettings class. Suggested change below.

@motorina0 motorina0 merged commit cfe2b43 into dev Feb 9, 2024
@motorina0 motorina0 deleted the envimprove branch February 9, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants