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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!