Spaces:
Runtime error
Runtime error
Commit ·
42994c6
1
Parent(s): 806e98a
Update server.py
Browse files
server.py
CHANGED
|
@@ -43,7 +43,7 @@ CORS(app) # allow cross-domain requests
|
|
| 43 |
app.config["MAX_CONTENT_LENGTH"] = 100 * 1024 * 1024
|
| 44 |
|
| 45 |
app.wsgi_app = ProxyFix(
|
| 46 |
-
app.wsgi_app, x_for=
|
| 47 |
)
|
| 48 |
|
| 49 |
def get_real_ip():
|
|
|
|
| 43 |
app.config["MAX_CONTENT_LENGTH"] = 100 * 1024 * 1024
|
| 44 |
|
| 45 |
app.wsgi_app = ProxyFix(
|
| 46 |
+
app.wsgi_app, x_for=2, x_proto=1, x_host=1, x_prefix=1
|
| 47 |
)
|
| 48 |
|
| 49 |
def get_real_ip():
|