adding cors and static folder option to nginx macro