update posts controller, test headers for reverse proxy