feat: add conf/app.ini
This commit is contained in:
+1
-1
@@ -28,6 +28,6 @@ go.work
|
|||||||
|
|
||||||
# Project ignore
|
# Project ignore
|
||||||
/test
|
/test
|
||||||
/conf
|
/conf/app.ini
|
||||||
/runtime
|
/runtime
|
||||||
.idea/
|
.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 {
|
type App struct {
|
||||||
JwtSecret string
|
JwtSecret string
|
||||||
PrefixUrl string
|
|
||||||
|
|
||||||
RuntimeRootPath string
|
RuntimeRootPath string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user