Closed albadrun closed 4 years ago
have you tried setting X-Forwarded-Proto
header from nginx to your desired schema? Based on this link flask can automatically set your schema based on that header
Has this been fixed? Please document how you solved this issue @albadrun
This issue is a:
Current behavior: Flask redirect
url_for
withhttp
scheme because of nginx proxy. Need to solve this in a better way. Now usingurl_for_custom
as workaround to fix this problems. See the code here.Requested behavior: Any way better than existing.
Why this behavior is better: No need to modify built in function.