mirror of
https://github.com/goravel/goravel.git
synced 2025-09-26 12:41:13 +08:00
Add configuration (#34)
This commit is contained in:
25
config/route.go
Normal file
25
config/route.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/goravel/framework/facades"
|
||||
)
|
||||
|
||||
func init() {
|
||||
config := facades.Config
|
||||
config.Add("route", map[string]any{
|
||||
// HTTP Host
|
||||
"host": config.Env("APP_HOST", "127.0.0.1:3000"),
|
||||
// HTTPS Configuration
|
||||
"tls": map[string]any{
|
||||
// HTTPS Host
|
||||
"host": config.Env("APP_HOST", "127.0.0.1:3000"),
|
||||
// SSL Certificate
|
||||
"ssl": map[string]any{
|
||||
// ca.pem
|
||||
"cert": "",
|
||||
// ca.key
|
||||
"key": "",
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user