there is no way to set an environment variable from proxy (like nginx). you can only add/modify headers and _your backend_ will set environment variables based on them (adding 'HTTP_' prefix and make it uppercase) if you realy need 'HTTPS' variable, you need to modify you backend