Skip to content

Commit

Permalink
feat: custom nginx conf dir path #62
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Jan 11, 2023
1 parent 7a98c16 commit 02fb07f
Show file tree
Hide file tree
Showing 12 changed files with 694 additions and 684 deletions.
5 changes: 5 additions & 0 deletions app.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ JwtSecret =
Email =
HTTPChallengePort = 9180
StartCmd = login
Database = database
CADir =
Demo =
GithubProxy =
NginxConfigDir =

[nginx_log]
AccessLogPath = /var/log/nginx/access.log
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func prog(state overseer.State) {
gin.SetMode(settings.ServerSettings.RunMode)

settings.Init(confPath)
log.Printf("Nginx config dir path: %s", nginx.GetNginxConfPath(""))
log.Printf("Nginx config dir path: %s", nginx.GetConfPath())
if "" != settings.ServerSettings.JwtSecret {
model.Init()

Expand Down
Loading

0 comments on commit 02fb07f

Please sign in to comment.