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
c1d7bef7
Commit
c1d7bef7
authored
Mar 11, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added cert_key and cert_file to defaults.ini
parent
434a2377
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
conf/defaults.ini
+3
-0
pkg/setting/setting.go
+1
-1
No files found.
conf/defaults.ini
View file @
c1d7bef7
...
...
@@ -16,6 +16,9 @@ router_logging = false
; the path relative to the binary where the static (html/js/css) files are placed
static_root_path
=
public
enable_gzip
=
false
; if https protocol
cert_file
=
cert_key
=
[database]
; Either "mysql", "postgres" or "sqlite3", it's your choice
...
...
pkg/setting/setting.go
View file @
c1d7bef7
...
...
@@ -198,7 +198,7 @@ func NewConfigContext(config string) {
if
server
.
Key
(
"protocol"
)
.
MustString
(
"http"
)
==
"https"
{
Protocol
=
HTTPS
CertFile
=
server
.
Key
(
"cert_file"
)
.
String
()
KeyFile
=
server
.
Key
(
"cert_
file
"
)
.
String
()
KeyFile
=
server
.
Key
(
"cert_
key
"
)
.
String
()
}
Domain
=
server
.
Key
(
"domain"
)
.
MustString
(
"localhost"
)
...
...
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