mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 14:23:07 +00:00
change default config
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Load configuration
|
// Load configuration
|
||||||
cfg := config.LoadApi("config/server.yaml")
|
cfg := config.LoadApi("config/api.yaml")
|
||||||
|
|
||||||
if cfg.App.Env == "release" {
|
if cfg.App.Env == "release" {
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
|
|||||||
@@ -4,11 +4,13 @@ storage:
|
|||||||
dsn: "host=localhost port=54320 user=postgres password=password dbname=postgres sslmode=disable"
|
dsn: "host=localhost port=54320 user=postgres password=password dbname=postgres sslmode=disable"
|
||||||
|
|
||||||
limit:
|
limit:
|
||||||
time: 10
|
time: 10.0 # s
|
||||||
cpu: 1
|
cpu: 1.0
|
||||||
memory: 512
|
memory: 512 # MB
|
||||||
|
size: 1024 # KB
|
||||||
|
|
||||||
process: 4
|
process: 1
|
||||||
|
|
||||||
name: "猫猫"
|
name: "default name"
|
||||||
|
|
||||||
|
compilerimage: "cpp_gcc-latest:latest"
|
||||||
Reference in New Issue
Block a user