plone.restapi/plone-only-login: Dockerfile: create instance and cors policy.

Timo Stollenwerk <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plone.restapi
Branch: refs/heads/plone-only-login
Date: 2017-07-06T15:03:20+03:00
Author: Timo Stollenwerk (tisto) <[email protected]>
Commit: https://github.com/plone/plone.restapi/commit/54cd496d01283f6a1f0bd4f77856d306ae6a2de9

Dockerfile: create instance and cors policy.

Files changed:
M site.cfg

diff --git a/site.cfg b/site.cfg
index 6c51af6d..9b2d5824 100644
--- a/site.cfg
+++ b/site.cfg
@@ -3,6 +3,47 @@ extensions = mr.developer
 extends = buildout.cfg
 eggs += plone.restapi
 auto-checkout = plone.restapi
+parts = instance plonesite
+
+
+[instance]
+recipe = plone.recipe.zope2instance
+user = admin:admin
+http-address = 8080
+eggs =
+    Plone
+    plone.restapi
+    collective.folderishtypes [dexterity]
+
+zcml-additional =
+  <configure xmlns="http://namespaces.zope.org/zope"
+             xmlns:plone="http://namespaces.plone.org/plone">
+  <plone:CORSPolicy
+    allow_origin="http://localhost:4300,http://127.0.0.1:4300,http://localhost:3000,http://127.0.0.1:3000"
+    allow_methods="DELETE,GET,OPTIONS,PATCH,POST,PUT"
+    allow_credentials="true"
+    expose_headers="Content-Length,X-My-Header"
+    allow_headers="Accept,Authorization,Content-Type,X-Custom-Header"
+    max_age="3600"
+    />
+  </configure>
+
+
+[plonesite]
+recipe = collective.recipe.plonesite
+site-id = Plone
+instance = instance
+profiles-initial = Products.CMFPlone:dependencies
+profiles =
+    plonetheme.barceloneta:default
+    plone.app.contenttypes:plone-content
+    plone.restapi:default
+    plone.app.mosaic:default
+    collective.folderishtypes.dx:default
+upgrade-portal = False
+upgrade-all-profiles = False
+site-replace = True
+
 
 [sources]
 plone.restapi = git git://github.com/plone/plone.restapi.git



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.