Mercurial > libervia-web
diff 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 |
line wrap: on
line diff
--- a/src/twisted/plugins/libervia_server.py Wed Mar 09 17:56:19 2016 +0100 +++ b/src/twisted/plugins/libervia_server.py Wed Mar 09 18:38:52 2016 +0100 @@ -109,6 +109,7 @@ ['passphrase', 'k', '', (_(u"Passphrase for the SàT profile named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), str], ['data_dir', 'd', DATA_DIR_DEFAULT, _(u'Data directory for Libervia').encode('utf-8'), coerceDataDir], ['allow_registration', '', True, _(u'Allow user to register new account').encode('utf-8'), coerceBool], + ['base_url_ext', '', '', _(u'The external URL to use as base URL').encode('utf-8'), str], ] # options which are in sat.conf and on command line, see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html # Options which are in sat.conf only OPT_PARAMETERS_CFG = [