Your ROOT_URL in app.ini is unix://git.lalonde.me:3000/ but you are visiting https://git.lalonde.me/matth/subgraph-oz/commit/796d39c197149196555d33dee8e3645e74e8ee63?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

drop uid/gid to user to run xpra

networking
brl 10 years ago
parent a6419afeb3
commit 796d39c197

@ -151,6 +151,11 @@ func (st *initState) startXpraServer() {
xpra.Process.Env = []string{ xpra.Process.Env = []string{
"HOME="+ st.user.HomeDir, "HOME="+ st.user.HomeDir,
} }
xpra.Process.SysProcAttr = &syscall.SysProcAttr{}
xpra.Process.SysProcAttr.Credential = &syscall.Credential{
Uid: uint32(st.uid),
Gid: uint32(st.gid),
}
st.log.Info("Starting xpra server") st.log.Info("Starting xpra server")
if err := xpra.Process.Start(); err != nil { if err := xpra.Process.Start(); err != nil {
st.log.Warning("Failed to start xpra server: %v", err) st.log.Warning("Failed to start xpra server: %v", err)

Loading…
Cancel
Save