Mercurial > libervia-web
comparison src/twisted/plugins/libervia_server.py @ 881:6bdee34fa2f4
server: added base_url_ext option to handle different external URLs (e.g.: if there is a proxy)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 09 Mar 2016 18:38:52 +0100 |
parents | 54f6c5b86a87 |
children | 74be6217d913 |
comparison
equal
deleted
inserted
replaced
880:ccbad50e1426 | 881:6bdee34fa2f4 |
---|---|
107 ['redirect_to_https', 'r', True, _(u'Automatically redirect from HTTP to HTTPS.').encode('utf-8'), coerceBool], | 107 ['redirect_to_https', 'r', True, _(u'Automatically redirect from HTTP to HTTPS.').encode('utf-8'), coerceBool], |
108 ['security_warning', 'w', True, _(u'Warn user that he is about to connect on HTTP.').encode('utf-8'), coerceBool], | 108 ['security_warning', 'w', True, _(u'Warn user that he is about to connect on HTTP.').encode('utf-8'), coerceBool], |
109 ['passphrase', 'k', '', (_(u"Passphrase for the SàT profile named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), str], | 109 ['passphrase', 'k', '', (_(u"Passphrase for the SàT profile named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), str], |
110 ['data_dir', 'd', DATA_DIR_DEFAULT, _(u'Data directory for Libervia').encode('utf-8'), coerceDataDir], | 110 ['data_dir', 'd', DATA_DIR_DEFAULT, _(u'Data directory for Libervia').encode('utf-8'), coerceDataDir], |
111 ['allow_registration', '', True, _(u'Allow user to register new account').encode('utf-8'), coerceBool], | 111 ['allow_registration', '', True, _(u'Allow user to register new account').encode('utf-8'), coerceBool], |
112 ['base_url_ext', '', '', _(u'The external URL to use as base URL').encode('utf-8'), str], | |
112 ] # options which are in sat.conf and on command line, see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html | 113 ] # options which are in sat.conf and on command line, see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html |
113 # Options which are in sat.conf only | 114 # Options which are in sat.conf only |
114 OPT_PARAMETERS_CFG = [ | 115 OPT_PARAMETERS_CFG = [ |
115 ['empty_password_allowed_warning_dangerous_list', None, '', None], | 116 ['empty_password_allowed_warning_dangerous_list', None, '', None], |
116 ['url_redirections_profile', None, '', None], | 117 ['url_redirections_profile', None, '', None], |