apply @konklone's nginx https: recommendations from https://gist.github.com/konklone/6532544