ristekoss / susunjadwal

SusunJadwal - Universitas Indonesia's #1 Student Course Planner App.
http://susunjadwal.cs.ui.ac.id/
34 stars 16 forks source link

Fix http/https behind proxy #26

Closed albadrun closed 4 years ago

albadrun commented 5 years ago

This issue is a:

Current behavior: Flask redirect url_for with http scheme because of nginx proxy. Need to solve this in a better way. Now using url_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.

aselhid commented 5 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

satraul commented 5 years ago

Has this been fixed? Please document how you solved this issue @albadrun