瀏覽代碼

Fix SSLify test

pull/2/head
Noah Petherbridge 4 年之前
父節點
當前提交
b36e764507
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      defaults.yml
  2. +1
    -1
      rophako/app.py
  3. +1
    -1
      rophako/model/wiki.py

+ 1
- 1
defaults.yml 查看文件

@@ -59,7 +59,7 @@ rophako:
# will do the following:
# - Send HTTP Strict-Transport-Security header
# - Use secure session cookies (SSL-only)
force_ssl: true
force_ssl: false

# Secret key used for session cookie signing. Make this long and hard to
# guess.


+ 1
- 1
rophako/app.py 查看文件

@@ -44,7 +44,7 @@ app.secret_key = bytes(Config.security.secret_key.encode("utf-8")) \
.decode(string_escape)

# Security?
if Config.security.force_ssl == "true":
if Config.security.force_ssl == True:
app.config['SESSION_COOKIE_SECURE'] = True
sslify = SSLify(app)



+ 1
- 1
rophako/model/wiki.py 查看文件

@@ -74,7 +74,7 @@ def edit_page(name, author, body, note, history=True):

# The new revision to be added.
rev = dict(
id=hashlib.md5(str(int(time.time()))).hexdigest(),
id=hashlib.md5(str(int(time.time())).encode("utf-8")).hexdigest(),
time=int(time.time()),
author=author,
body=body,


Loading…
取消
儲存