Fix compatibility with werkzeug 1.0.x + secure-cookie
This commit is contained in:
parent
9d18f665c5
commit
f370bd4712
2
APKBUILD
2
APKBUILD
@ -7,7 +7,7 @@ pkgdesc="VM and application manager"
|
|||||||
url="https://spotter.vm/"
|
url="https://spotter.vm/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL"
|
license="GPL"
|
||||||
depends="acme.sh python3 py3-bcrypt py3-cffi py3-cryptography py3-dnspython py3-jinja2 py3-requests py3-six py3-werkzeug wireguard-virt wireguard-tools-wg"
|
depends="acme.sh python3 py3-bcrypt py3-cffi py3-cryptography py3-dnspython py3-jinja2 py3-requests py3-secure-cookie py3-six py3-werkzeug wireguard-virt wireguard-tools-wg"
|
||||||
options="!check !strip"
|
options="!check !strip"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from werkzeug.contrib.securecookie import SecureCookie
|
from secure_cookie.cookie import SecureCookie
|
||||||
|
|
||||||
class WSGISession:
|
class WSGISession:
|
||||||
def __init__(self, cookies, secret_key):
|
def __init__(self, cookies, secret_key):
|
||||||
|
@ -7,7 +7,7 @@ application = WSGIApp()
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import os
|
import os
|
||||||
from werkzeug.contrib.fixers import ProxyFix
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
from werkzeug.serving import run_simple
|
from werkzeug.serving import run_simple
|
||||||
|
|
||||||
run_simple('127.0.0.1', 8080, ProxyFix(application), threaded=True)
|
run_simple('127.0.0.1', 8080, ProxyFix(application), threaded=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user