Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
dea26009
Commit
dea26009
authored
Apr 26, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'oauth/patch-2' Fix oauth in combination with nginx reverse proxy
parents
dc46ad16
6384cdc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
__init__.py
cps/__init__.py
+2
-2
No files found.
cps/__init__.py
View file @
dea26009
...
...
@@ -36,7 +36,7 @@ from flask_principal import Principal
from
.
import
logger
,
cache_buster
,
cli
,
config_sql
,
ub
,
db
,
services
from
.reverseproxy
import
ReverseProxied
from
.server
import
WebServer
from
werkzeug.middleware.proxy_fix
import
ProxyFix
mimetypes
.
init
()
mimetypes
.
add_type
(
'application/xhtml+xml'
,
'.xhtml'
)
...
...
@@ -77,7 +77,7 @@ log = logger.create()
def
create_app
():
app
.
wsgi_app
=
ReverseProxied
(
app
.
wsgi_app
)
app
.
wsgi_app
=
ReverseProxied
(
ProxyFix
(
app
.
wsgi_app
,
x_for
=
1
,
x_host
=
1
)
)
# For python2 convert path to unicode
if
sys
.
version_info
<
(
3
,
0
):
app
.
static_folder
=
app
.
static_folder
.
decode
(
'utf-8'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment