-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.go
45 lines (39 loc) · 1.09 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package demo
import "github.com/temphia/temphia/code/backend/app/config/simple"
var sqliteConf = simple.Config{
AppName: "Demo App",
MasterKey: "__secret_demo__11",
ServerPort: ":5000",
OperatorName: "ops",
OperatorPassword: "ops123",
Database: simple.DatabaseOptions{
Provider: "sqlite",
Vendor: "sqlite",
HostPath: "temphia-data/sqlitedata/demo.db",
Options: map[string]interface{}{},
},
ExecutorOptions: make(map[string]any),
ModulesOptions: make(map[string]any),
DataFolder: "./temphia-data",
}
var postgresConf = simple.Config{
AppName: "Demo App",
MasterKey: "__secret_demo__11",
ServerPort: ":5000",
OperatorName: "ops",
OperatorPassword: "ops123",
Database: simple.DatabaseOptions{
Provider: "postgres",
Vendor: "postgres",
HostPath: "localhost",
Target: "demo",
User: "demo",
Password: "demo123",
Port: "7032",
Options: map[string]interface{}{},
},
ExecutorOptions: make(map[string]any),
ModulesOptions: make(map[string]any),
DataFolder: "./temphia-data",
}
var Conf simple.Config