Docker, Discourse and Nginx
Base problem here is, I’m trying to set Discourse up in a droplet to serve comment threads for a site that is hosted elsewhere (as well as create a community). I’ve been getting CORS-related 403 errors because of this setup (you can see discussion regarding the issue here: http://forum.getkirby.com/t/discourse-on-kirby/340).
I’ve ended up determining nginx to be the next thing to try and work on. Problem is, nginx is running within a Docker app, and as a consequence editing it directly would only work as a temporary workaround (I’d need to fix every time I rebuild my app).
I wanna include this (http://enable-cors.org/server_nginx.html) in nginx’s configuration, at building stage (in other words, I need to figure out how to get Docker to include this configuration in the nginx instance it includes in the app). Problem is I know next to nothing about YAML and Docker, so I have no idea where to act. Any pointers?