Server: Add "force" and "mode" flags for sockets #4673 #4767 #4765 #4467

These changes allow you to force the re-creation of existing Unix domain
sockets and set the permissions of sockets after they have been created.

The flag or variable value for this must be formatted as follows:
--http-host="unix:/var/run/photoprism.sock?force=true&mode=660"

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-02-04 12:03:00 +01:00
parent 03fcc5d606
commit 1f4f65e988
91 changed files with 376 additions and 88 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/photoprism/photoprism/internal/photoprism/get"
"github.com/photoprism/photoprism/internal/thumb"
"github.com/photoprism/photoprism/pkg/fs"
"github.com/photoprism/photoprism/pkg/header"
"github.com/photoprism/photoprism/pkg/net/header"
"github.com/photoprism/photoprism/pkg/rnd"
)