changeset 517e4ebcaacd in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=517e4ebcaacd
description:
        Allow to customize CDN_HTTPS with environment
diffstat:

 app.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ba7c8d2b15da -r 517e4ebcaacd app.py
--- a/app.py    Mon Jul 29 21:49:23 2019 +0200
+++ b/app.py    Mon Jul 29 21:50:01 2019 +0200
@@ -70,7 +70,7 @@
     'donate-alt', 'donate_thanks', 'donate_cancel', 'service_providers-alt',
     'sitemap.xml']
 app.config['CDN_DOMAIN'] = os.environ.get('CDN_DOMAIN')
-app.config['CDN_HTTPS'] = True
+app.config['CDN_HTTPS'] = os.environ.get('CDN_HTTPS', True)
 app.config['SITEMAP_IGNORE_ENDPOINTS'] = ['events', 'events-alt']
 cache.init_app(app)
 CDN(app)

Reply via email to