diff --git a/source/embed/index.html b/source/embed/index.html index 6d9769e..e7b2f98 100644 --- a/source/embed/index.html +++ b/source/embed/index.html @@ -43,7 +43,7 @@ if (trim_point > 0) { var embed_path = window.location.href.substring(0,trim_point); // supports https access via https://s3.amazonaws.com/cdn.knightlab.com/libs/timeline/latest/embed/index.html } else { - var embed_path = "http://cdn.knightlab.com/libs/timeline/latest/"; + var embed_path = "//test.knightlab.com/libs/timeline/latest/"; } diff --git a/website/app.py b/website/app.py index 078d50e..8f988ab 100644 --- a/website/app.py +++ b/website/app.py @@ -83,4 +83,26 @@ def catch_all(path='index.html'): if __name__ == "__main__": - app.run(host='0.0.0.0', port=5000, debug=True) + import getopt + + ssl_context = None + port = 5000 + + try: + opts, args = getopt.getopt(sys.argv[1:], "sp:", ["port="]) + for opt, arg in opts: + if opt == '-s': + ssl_context = ( + os.path.join(site_dir, 'website.crt'), + os.path.join(site_dir, 'website.key')) + + elif opt in ('-p', '--port'): + port = int(arg) + else: + print 'Usage: app.py [-s]' + sys.exit(1) + except getopt.GetoptError: + print 'Usage: app.py [-s] [-p port]' + sys.exit(1) + + app.run(host='0.0.0.0', port=5000, debug=True, ssl_context=ssl_context) diff --git a/website/templates/_demo.html b/website/templates/_demo.html index e08f30e..211c219 100644 --- a/website/templates/_demo.html +++ b/website/templates/_demo.html @@ -14,7 +14,7 @@ font: 'NewsCycle-Merriweather', }; - + diff --git a/website/templates/_description.html b/website/templates/_description.html index 4eb2747..8423ba5 100644 --- a/website/templates/_description.html +++ b/website/templates/_description.html @@ -20,7 +20,7 @@
Get updates, tips and news by email. No Spam.