Server: Make unix socket permission configurable (#52944)
This commit is contained in:
@@ -204,6 +204,8 @@ type Cfg struct {
|
||||
ServeFromSubPath bool
|
||||
StaticRootPath string
|
||||
Protocol Scheme
|
||||
SocketGid int
|
||||
SocketMode int
|
||||
SocketPath string
|
||||
RouterLogging bool
|
||||
Domain string
|
||||
@@ -1622,6 +1624,8 @@ func (cfg *Cfg) readServerSettings(iniFile *ini.File) error {
|
||||
}
|
||||
if protocolStr == "socket" {
|
||||
cfg.Protocol = SocketScheme
|
||||
cfg.SocketGid = server.Key("socket_gid").MustInt(-1)
|
||||
cfg.SocketMode = server.Key("socket_mode").MustInt(0660)
|
||||
cfg.SocketPath = server.Key("socket").String()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user