Remove unneeded  nginx restart
Try to define nginx service
Add support for https enforcement behind proxy (like ELB)
Actually use the behind_proxy attribute