add support for OPTIONS requests

so far these were handled by an if statement in the nginx conf, this
change simplifies the configuration