mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
304 B
15 lines
304 B
package nginx
|
|
|
|
import (
|
|
"github.com/1Panel-dev/1Panel/backend/utils/nginx/components"
|
|
"github.com/1Panel-dev/1Panel/backend/utils/nginx/parser"
|
|
)
|
|
|
|
func GetConfig(path string) (*components.Config, error) {
|
|
p, err := parser.NewParser(path)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return p.Parse(), nil
|
|
}
|