1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/gojuukaze-liteAuth

Клонировать/Скачать
twisted_config.py 695
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
gojuukaze Отправлено 03.09.2020 10:41 8c29fdc
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
from twisted.logger import textFileLogObserver, ILogObserver
from twisted.application import service
from twisted.python.logfile import LogFile
import config
from lite_auth_ldap.service import LiteAutLDAPService
application = service.Application("LiteAuth LDAP Application")
if not config.DEBUG:
f = LogFile('ldap.log', config.LOG_PATH, rotateLength=config.LOG_MAX_BYTES, maxRotatedFiles=config.LOG_BACKUP_COUNT)
application.setComponent(ILogObserver, textFileLogObserver(f))
ip, port = config.LDAP_LISTEN.split(':')
service = LiteAutLDAPService(int(port), ip)
service.setServiceParent(application)

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/gojuukaze-liteAuth.git
git@api.gitlife.ru:oschina-mirror/gojuukaze-liteAuth.git
oschina-mirror
gojuukaze-liteAuth
gojuukaze-liteAuth
master