changes need for ssl to work

i'll reference this commit in the near future to parametize it in the
settings template