Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
23558c61
Commit
23558c61
authored
Jul 31, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: wip work on #8768
parent
8ca08d65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
conf/defaults.ini
+5
-0
pkg/setting/setting.go
+15
-9
No files found.
conf/defaults.ini
View file @
23558c61
...
@@ -204,6 +204,11 @@ login_hint = email or username
...
@@ -204,6 +204,11 @@ login_hint = email or username
# Default UI theme ("dark" or "light")
# Default UI theme ("dark" or "light")
default_theme
=
dark
default_theme
=
dark
# External user management
external_manage_link_url
=
external_manage_link_name
=
external_manage_info
=
[auth]
[auth]
# Set to true to disable (hide) the login form, useful if you use OAuth
# Set to true to disable (hide) the login form, useful if you use OAuth
disable_login_form
=
false
disable_login_form
=
false
...
...
pkg/setting/setting.go
View file @
23558c61
...
@@ -90,15 +90,18 @@ var (
...
@@ -90,15 +90,18 @@ var (
SnapShotRemoveExpired
bool
SnapShotRemoveExpired
bool
// User settings
// User settings
AllowUserSignUp
bool
AllowUserSignUp
bool
AllowUserOrgCreate
bool
AllowUserOrgCreate
bool
AutoAssignOrg
bool
AutoAssignOrg
bool
AutoAssignOrgRole
string
AutoAssignOrgRole
string
VerifyEmailEnabled
bool
VerifyEmailEnabled
bool
LoginHint
string
LoginHint
string
DefaultTheme
string
DefaultTheme
string
DisableLoginForm
bool
DisableLoginForm
bool
DisableSignoutMenu
bool
DisableSignoutMenu
bool
ManageUsersLinkUrl
string
ManageUsersLinkName
string
ManageUsersInfo
string
// Http auth
// Http auth
AdminUser
string
AdminUser
string
...
@@ -531,6 +534,9 @@ func NewConfigContext(args *CommandLineArgs) error {
...
@@ -531,6 +534,9 @@ func NewConfigContext(args *CommandLineArgs) error {
VerifyEmailEnabled
=
users
.
Key
(
"verify_email_enabled"
)
.
MustBool
(
false
)
VerifyEmailEnabled
=
users
.
Key
(
"verify_email_enabled"
)
.
MustBool
(
false
)
LoginHint
=
users
.
Key
(
"login_hint"
)
.
String
()
LoginHint
=
users
.
Key
(
"login_hint"
)
.
String
()
DefaultTheme
=
users
.
Key
(
"default_theme"
)
.
String
()
DefaultTheme
=
users
.
Key
(
"default_theme"
)
.
String
()
ManageUsersLinkUrl
=
users
.
Key
(
"external_manage_link_url"
)
.
String
()
ManageUsersLinkName
=
users
.
Key
(
"external_manage_link_name"
)
.
String
()
ManageUsersInfo
=
users
.
Key
(
"external_manage_info"
)
.
String
()
// auth
// auth
auth
:=
Cfg
.
Section
(
"auth"
)
auth
:=
Cfg
.
Section
(
"auth"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment