feat: add conf/app.ini

This commit is contained in:
engigu
2024-01-02 14:54:10 +08:00
parent e26932d02c
commit 8bafbdd4b7
3 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -28,6 +28,6 @@ go.work
# Project ignore
/test
/conf
/conf/app.ini
/runtime
.idea/
+20
View File
@@ -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_
-1
View File
@@ -9,7 +9,6 @@ import (
type App struct {
JwtSecret string
PrefixUrl string
RuntimeRootPath string
}