Skip to content

Please add config option to chmod a UNIX socket #145

@leonerd

Description

@leonerd

When Starman creates a UNIX socket it just inherits the prevailing umask setting, which often means that the socket is restricted so only the same UID can connect to it. It's common to deploy webapps as their own user ID, separate from the user ID the webserver is running as, so this is not ideal.

It would be useful if there was a configuration setting to chmod the socket; either. to mode 0777 and permit everything.

As an extra stretch-goal, a really nice configuration would be chmod to 0775 to permit the group and additionally supply a supplementary group that can be shared by the webserver, which can then be chgrp'ed onto the socket. E.g. platforms often use the group www-data for this purpose.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions