Skip to content

Config: Add options to set Unix socket mode, gid #4765

@ledlamp

Description

@ledlamp

#2337 #3595 2bf5008 c82a4b2

There should be config options to set the mode and gid of the socket file when listening on unix socket.

The default mode is 775, so it would be useful to configure this to 777 so that anything can connect to it (equivalent to TCP/IP). Maybe this should be the default mode.

Or it would be useful to set the socket gid to the web server (reverse proxy) gid to allow the web server to connect without giving it access to photoprism files.

My Photos folder is mode 750 so Photoprism has read-only access via group. If I add web server to photoprism group then it will be able to access all my private photos. So I need to set socket gid to web server gid.

Without these options I cannot use unix socket without manually changing the mode or gid after photoprism starts. The default mode is 775, the photoprism server and web server are in different users/groups, and the web server doesn't run as root, so the web server can't connect.

Metadata

Metadata

Assignees

Labels

configGlobal Configuration, Initialization, and User SettingsideaFeedback wanted / feature requestreleasedAvailable in the stable release

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions