Mercurial > kallithea
changeset 5882:110b504916b6
ini: document canonical_url - it was introduced long time ago but seems useful
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 04 May 2016 01:18:25 +0200 |
parents | a5ad2900985b |
children | 78bba376a508 |
files | development.ini kallithea/bin/template.ini.mako kallithea/config/deployment.ini_tmpl kallithea/tests/test.ini |
diffstat | 4 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/development.ini Wed May 04 01:18:25 2016 +0200 +++ b/development.ini Wed May 04 01:18:25 2016 +0200 @@ -223,6 +223,11 @@ show_sha_length = 12 show_revision_number = false +## Canonical URL to use when creating full URLs in UI and texts. +## Useful when the site is available under different names or protocols. +## Defaults to what is provided in the WSGI environment. +#canonical_url = https://kallithea.example.com/repos + ## gist URL alias, used to create nicer urls for gist. This should be an ## url that does rewrites to _admin/gists/<gistid>. ## example: http://gist.example.com/{gistid}. Empty means use the internal
--- a/kallithea/bin/template.ini.mako Wed May 04 01:18:25 2016 +0200 +++ b/kallithea/bin/template.ini.mako Wed May 04 01:18:25 2016 +0200 @@ -220,6 +220,11 @@ show_sha_length = 12 show_revision_number = false +<%text>## Canonical URL to use when creating full URLs in UI and texts.</%text> +<%text>## Useful when the site is available under different names or protocols.</%text> +<%text>## Defaults to what is provided in the WSGI environment.</%text> +#canonical_url = https://kallithea.example.com/repos + <%text>## gist URL alias, used to create nicer urls for gist. This should be an</%text> <%text>## url that does rewrites to _admin/gists/<gistid>.</%text> <%text>## example: http://gist.example.com/{gistid}. Empty means use the internal</%text>
--- a/kallithea/config/deployment.ini_tmpl Wed May 04 01:18:25 2016 +0200 +++ b/kallithea/config/deployment.ini_tmpl Wed May 04 01:18:25 2016 +0200 @@ -216,6 +216,11 @@ show_sha_length = 12 show_revision_number = false +## Canonical URL to use when creating full URLs in UI and texts. +## Useful when the site is available under different names or protocols. +## Defaults to what is provided in the WSGI environment. +#canonical_url = https://kallithea.example.com/repos + ## gist URL alias, used to create nicer urls for gist. This should be an ## url that does rewrites to _admin/gists/<gistid>. ## example: http://gist.example.com/{gistid}. Empty means use the internal
--- a/kallithea/tests/test.ini Wed May 04 01:18:25 2016 +0200 +++ b/kallithea/tests/test.ini Wed May 04 01:18:25 2016 +0200 @@ -222,6 +222,11 @@ #show_revision_number = false show_revision_number = true +## Canonical URL to use when creating full URLs in UI and texts. +## Useful when the site is available under different names or protocols. +## Defaults to what is provided in the WSGI environment. +#canonical_url = https://kallithea.example.com/repos + ## gist URL alias, used to create nicer urls for gist. This should be an ## url that does rewrites to _admin/gists/<gistid>. ## example: http://gist.example.com/{gistid}. Empty means use the internal