Sorry but I must reference: Questions and You: A guide to getting an answer
without any details nobody would be able to help you to write the correct configuration for your setup. The settings are described in the docs: http://docs.graylog.org/en/3.0/pages/configuration/server.conf.html#web-rest-api