mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
enhance: removed the ability to modify nginx log path settings online
This commit is contained in:
parent
abd76ff930
commit
27f751671b
4 changed files with 9 additions and 8 deletions
|
@ -3,6 +3,7 @@ package settings
|
|||
import (
|
||||
"github.com/0xJacky/Nginx-UI/api"
|
||||
"github.com/0xJacky/Nginx-UI/internal/cron"
|
||||
"github.com/0xJacky/Nginx-UI/internal/nginx"
|
||||
"github.com/0xJacky/Nginx-UI/settings"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
|
@ -15,6 +16,8 @@ func GetServerName(c *gin.Context) {
|
|||
}
|
||||
|
||||
func GetSettings(c *gin.Context) {
|
||||
settings.NginxSettings.AccessLogPath = nginx.GetAccessLogPath()
|
||||
settings.NginxSettings.ErrorLogPath = nginx.GetErrorLogPath()
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"server": settings.ServerSettings,
|
||||
"nginx": settings.NginxSettings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue