Commit 8971ef39 authored by Ryan Herbert's avatar Ryan Herbert

db.py, defs.py.sample add possibility to disable HTTPS

Adds a defs.py variable to indicate wether https is required for server
requests
parent 3821a9f4
......@@ -39,7 +39,8 @@ LENGTH_UPLOAD = 400
## if SSL/HTTPS is properly configured and you want all HTTP requests to
## be redirected to HTTPS, uncomment the line below:
request.requires_https()
if defs.REQUIRE_HTTPS:
request.requires_https()
if not request.env.web2py_runtime_gae:
## if NOT running on Google App Engine use SQLite or other DB
......
......@@ -88,3 +88,5 @@ SCHEDULER_HEARTBEAT = 5
# Directory to search for files
FILE_SOURCE = '/mnt/data/src'
FILE_TYPES = ['fasta', 'fastq', 'fastq.gz']
REQUIRE_HTTPS = True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment