Correctly pass HTTPS = on to PHP only when SSL is used.

Close #15.
Nginx config now includes app-specific config snippets.

Closes #16.