mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 20:57:19 +08:00
32 lines
507 B
Go
32 lines
507 B
Go
package config
|
|
|
|
import (
|
|
"github.com/goravel/framework/facades"
|
|
)
|
|
|
|
func init() {
|
|
config := facades.Config()
|
|
config.Add("http", map[string]any{
|
|
// HTTP URL
|
|
"url": "http://localhost",
|
|
// HTTP Host
|
|
"host": "0.0.0.0",
|
|
// HTTP Port
|
|
"port": "8888",
|
|
// HTTPS Configuration
|
|
"tls": map[string]any{
|
|
// HTTPS Host
|
|
"host": "0.0.0.0",
|
|
// HTTPS Port
|
|
"port": "8899",
|
|
// SSL Certificate
|
|
"ssl": map[string]any{
|
|
// ca.pem
|
|
"cert": "",
|
|
// ca.key
|
|
"key": "",
|
|
},
|
|
},
|
|
})
|
|
}
|