allow enabling https via environment variables

Continuing from #3717 (closed), add GITLAB_PORT and GITLAB_HTTPS

@marin @jacobvosmaer