mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
feat: custom nginx conf dir path #62
This commit is contained in:
parent
7a98c16535
commit
02fb07f6b4
12 changed files with 625 additions and 615 deletions
|
@ -13,7 +13,6 @@ import (
|
|||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -107,7 +106,7 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
|
|||
switch control.Type {
|
||||
case "site":
|
||||
var config *nginx.NgxConfig
|
||||
path := filepath.Join(nginx.GetNginxConfPath("sites-available"), control.ConfName)
|
||||
path := nginx.GetConfPath("sites-available", control.ConfName)
|
||||
config, err = nginx.ParseNgxConfig(path)
|
||||
if err != nil {
|
||||
err = errors.Wrap(err, "error parsing ngx config")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue