ccb81d18ee
request simply didn't work. Apache doesn't forward that information. So instead, I'm now using a hacky work-around that looks at the proxy IP to determine whether it was an http or https request. Still need to fix unit tests for this.
24 lines
673 B
Python
24 lines
673 B
Python
import cherrypy
|
|
|
|
|
|
settings = {
|
|
"global": {
|
|
"server.socket_port": 8081,
|
|
"server.environment": "production",
|
|
"session_filter.on": True,
|
|
"session_filter.storage_type": "file",
|
|
"session_filter.storage_path": "session",
|
|
"session_filter.timeout": 60 * 72, # 72 hours
|
|
"session_filter.clean_up_delay": 5,
|
|
"session_filter.locking": "implicit",
|
|
"encoding_filter.on": True,
|
|
"encoding_filter.encoding": "utf-8",
|
|
"decoding_filter.on": True,
|
|
"decoding_filter.encoding": "utf-8",
|
|
"luminotes.http_url": "",
|
|
"luminotes.https_url": "",
|
|
"luminotes.http_proxy_ip": "127.0.0.1",
|
|
"luminotes.https_proxy_ip": "127.0.0.2",
|
|
},
|
|
}
|