2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 17:17:13 +08:00
Files
panel/config/queue.go
2023-06-22 00:09:56 +08:00

29 lines
644 B
Go

package config
import (
"github.com/goravel/framework/facades"
)
func init() {
config := facades.Config()
config.Add("queue", map[string]any{
// Default Queue Connection Name
"default": config.Env("QUEUE_CONNECTION", "sync"),
// Queue Connections
//
// Here you may configure the connection information for each server that is used by your application.
// Drivers: "sync", "redis"
"connections": map[string]any{
"sync": map[string]any{
"driver": "sync",
},
"redis": map[string]any{
"driver": "redis",
"connection": "default",
"queue": config.Env("REDIS_QUEUE", "default"),
},
},
})
}