[Solved] Web HTTPS redirect to HTTP after login

I have a weird problem here that I can’t resolve. I enabled https via Nginx, the login page appears correctly. However, after login, the interface went to HTTP.

Any idea?

Please refer to the attachments to see what I mean.

Thanks in advance guys!

Make sure under “System Admin => Settings => SERVICE_URL” starts with “https://…”

SERVICE_URL and FILE_SERVER_ROOT are both start with https

Please recheck the manual: https://download.seafile.com/published/seafile-manual/deploy/https_with_nginx.md

There is even a section to setup a rewrite rule to force the client to https!

Thanks Germeier, it seems by adding line below followed by server restart solved my problem:

add_header Strict-Transport-Security “max-age=31536000; includeSubDomains” always;