django-orchestra/orchestra/contrib/systemusers/settings.py

47 lines
985 B
Python
Raw Normal View History

2015-04-04 18:10:39 +00:00
from django.utils.translation import ugettext_lazy as _
2015-04-26 13:53:00 +00:00
from orchestra.settings import Setting
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_SHELLS = Setting('SYSTEMUSERS_SHELLS', (
2014-10-02 15:58:27 +00:00
('/dev/null', _("No shell, FTP only")),
('/bin/rssh', _("No shell, SFTP/RSYNC only")),
2014-09-30 10:20:11 +00:00
('/bin/bash', "/bin/bash"),
('/bin/sh', "/bin/sh"),
))
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_DEFAULT_SHELL = Setting('SYSTEMUSERS_DEFAULT_SHELL', '/dev/null',
choices=SYSTEMUSERS_SHELLS
)
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_DISABLED_SHELLS = Setting('SYSTEMUSERS_DISABLED_SHELLS', (
'/dev/null',
'/bin/rssh',
))
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_HOME = Setting('SYSTEMUSERS_HOME',
'/home/%(user)s'
)
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_FTP_LOG_PATH = Setting('SYSTEMUSERS_FTP_LOG_PATH',
'/var/log/vsftpd.log'
)
2014-10-24 14:19:34 +00:00
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_MAIL_LOG_PATH = Setting('SYSTEMUSERS_MAIL_LOG_PATH',
2015-04-07 15:14:49 +00:00
'/var/log/exim4/mainlog'
)
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_DEFAULT_GROUP_MEMBERS = Setting('SYSTEMUSERS_DEFAULT_GROUP_MEMBERS',
('www-data',)
)
2015-04-09 14:32:10 +00:00
2015-04-26 13:53:00 +00:00
SYSTEMUSERS_MOVE_ON_DELETE_PATH = Setting('SYSTEMUSERS_MOVE_ON_DELETE_PATH',
2015-04-09 14:32:10 +00:00
''
)