feat: add conf/app.ini
This commit is contained in:
+1
-1
@@ -28,6 +28,6 @@ go.work
|
||||
|
||||
# Project ignore
|
||||
/test
|
||||
/conf
|
||||
/conf/app.ini
|
||||
/runtime
|
||||
.idea/
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
[app]
|
||||
JwtSecret = message-nest
|
||||
RuntimeRootPath = runtime/
|
||||
|
||||
[server]
|
||||
; debug or release
|
||||
RunMode = release
|
||||
HttpPort = 8000
|
||||
ReadTimeout = 60
|
||||
WriteTimeout = 60
|
||||
; use embed html static file
|
||||
; EmbedHtml = disable
|
||||
|
||||
[database]
|
||||
Type = mysql
|
||||
User = root
|
||||
Password = password
|
||||
Host = 123.1.1.1
|
||||
Name = db_name
|
||||
TablePrefix = message_
|
||||
@@ -9,7 +9,6 @@ import (
|
||||
|
||||
type App struct {
|
||||
JwtSecret string
|
||||
PrefixUrl string
|
||||
|
||||
RuntimeRootPath string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user