wiki配置管理
options_no_group_name = {# ==========================================================================
'session': ('Session settings', "Session-related settings, see HelpOnSessions.", (
('session_handler', DefaultExpression('session.DefaultSessionHandler()'),
"See HelpOnSessions."),
('session_id_handler', DefaultExpression('session.MoinCookieSessionIDHandler()'),
"Only used by the DefaultSessionHandler, see HelpOnSessions."),
('cookie_secure', None,
'Use secure cookie. (None = auto-enable secure cookie for https, True = ever use secure cookie, False = never use secure cookie).'),
('cookie_domain', None,
'Domain used in the session cookie. (None = do not specify domain).'),
('cookie_path', None,
'Path used in the session cookie (None = auto-detect).'),
('cookie_lifetime', 12,
'Session lifetime of logged-in users (see HelpOnSessions for details).'),
('anonymous_session_lifetime', None,
'Session lifetime of users who are not logged in (None = disable anon sessions).'),
)),
# ==========================================================================
'auth': ('Authentication / Authorization / Security settings', None, (
('superuser', [],
"List of trusted user names with wiki system administration super powers (not to be confused with ACL admin rights!). Used for e.g. software installation, language installation via SystemPagesSetup and more. See also HelpOnSuperUser."),
('auth', DefaultExpression(''),
"list of auth objects, to be called in this order (see HelpOnAuthentication)"),
('auth_methods_trusted', ['http', 'xmlrpc_applytoken'],
'authentication methods for which users should be included in the special "Trusted" ACL group.'),
('secrets', None, """Either a long shared secret string used for multiple purposes or a dict {"purpose": "longsecretstring", ...} for setting up different shared secrets for different purposes. If you don't setup own secret(s), a secret string will be auto-generated from other config settings."""),
('DesktopEdition',
False,
"if True, give all local users special powers - ''only use this for a local desktop wiki!''"),
('SecurityPolicy',
None,
"Class object hook for implementing security restrictions or relaxations"),
('actions_excluded',
['xmlrpc',# we do not want wiki admins unknowingly offering xmlrpc service
'MyPages',# only works when used with a non-default SecurityPolicy (e.g. autoadmin)
'CopyPage',# has questionable behaviour regarding subpages a user can't read, but can copy
],
"Exclude unwanted actions (list of strings)"),
('allow_xslt', False,
"if True, enables XSLT processing via 4Suite (note that this enables anyone with enough know-how to insert '''arbitrary HTML''' into your wiki, which is why it defaults to `False`)"),
('password_checker', DefaultExpression('_default_password_checker'),
'checks whether a password is acceptable (default check is length >= 6, at least 4 different chars, no keyboard sequence, not username used somehow (you can switch this off by using `None`)'),
)),
页:
[1]