Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat() : Setup XM Cloud #1

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 9 additions & 8 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ COMPOSE_PROJECT_NAME=sxastarter
# Configure host names, which will be used to configure Traefik proxy routing.
CM_HOST=xmcloudcm.localhost
RENDERING_HOST=www.xmcloudpreview.localhost
RENDERING_HOST_INTERNAL_URI=http://rendering:3000
RENDERING_HOST_INTERNAL_URI=http://localhost:3000

# Sitecore Docker registry and platform version.
# The ltsc2019-based images are used by default here. SAC images are also available.
# Switch to this when ready for prod SITECORE_DOCKER_REGISTRY=scr.sitecore.com/xmcloud/
SITECORE_DOCKER_REGISTRY=scr.sitecore.com/xmcloud/
SITECORE_NONPRODUCTION_DOCKER_REGISTRY=scr.sitecore.com/sxp/

SITECORE_VERSION=1-ltsc2019
EXTERNAL_IMAGE_TAG_SUFFIX=ltsc2019

# The sitecore\admin and SQL 'sa' account passwords for this environment are configurable here.
SITECORE_ADMIN_PASSWORD=Password
SITECORE_ADMIN_PASSWORD=b
SQL_SERVER=mssql
SQL_SA_LOGIN=sa
SQL_SA_PASSWORD=Password123!
SQL_SA_PASSWORD=tUNtA0RCVv9PxBKz4v8
SQL_DATABASE_PREFIX=Sitecore

# Other supporting images, including Sitecore modules and Docker tools
Expand All @@ -44,9 +45,9 @@ ISOLATION=default
TRAEFIK_ISOLATION=hyperv

# Generated keys and certificates for your environment.
REPORTING_API_KEY=
TELERIK_ENCRYPTION_KEY=
MEDIA_REQUEST_PROTECTION_SHARED_SECRET=
REPORTING_API_KEY=EGt1zaEGqk8JQcYtOk9KGsONUCicd4m9fXvtJou9bHY3MIL9IpOREOgBnx6k0Jg78JQYdLhKFQVI5xCicpyxwXaWsNyEusxERTWfwjC1EMUv1hBm5W5nOFksbnlekCGE
TELERIK_ENCRYPTION_KEY=$<bQt|AY88?Jl@7_|76~f*k;j6@Gz5B/y*d*#[)n9Ysp0WJ*;WS}c|OxmSVuvZ{PDB;.nJM15xVZH*aiaUK{y\xQt)4k0?Uj46&0Ve)L8j[`yX>5F($N}&/mu]7<RhJ/
MEDIA_REQUEST_PROTECTION_SHARED_SECRET=h6WQL|X`hhk|qS7!#OZ&piGit@2y`JUak#PJ3D.]`wwpS9vKKN[7Pd@LMHP{WC*B
SITECORE_FedAuth_dot_Auth0_dot_RedirectBaseUrl=https://xmcloudcm.localhost/
SITECORE_FedAuth_dot_Auth0_dot_IsLocal=true
SITECORE_FedAuth_dot_Auth0_dot_ClientId=we67e2gGRO0HIfglz23Yypp4T5Rshu86
Expand All @@ -72,7 +73,7 @@ LOG_LEVEL_VALUE=INFO
HOST_LICENSE_FOLDER=C:\License
NODEJS_VERSION=16.15.1
VERSION=1.0.1
JSS_DEPLOYMENT_SECRET_xmcloudpreview=110F1C44A496B45478640DD36F80C18C9
JSS_DEPLOYMENT_SECRET_xmcloudpreview=xwf748xgtgko88jj7ls7pp6q2rr2bem6fmvmlipjcg
SITECORE_API_KEY_xmcloudpreview={51DC7C23-A175-4922-B021-282102C4893C}
JSS_EDITING_SECRET=RPvBNxW5VtDGyiQFpNiyxpye5F4zdZ1ldxskaJGiDrFf5F8UPf5ttYDDIxyCA0VX
JSS_EDITING_SECRET=f1CIjqxcsVT4lj2XHZuqgmkiI3MLCsNLxb1QWbIQJflBMLiJCusCJB060QEvAd8K
DISABLE_SSG_FETCH=true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ packages/
/src/rendering/src/temp/!.gitignore
/src/rendering/src/temp/!GraphQLFragmentTypes.json
/src/rendering/src/temp/!GraphQLIntrospectionResult.json
/src/nextjs/.vscode
4 changes: 2 additions & 2 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ services:
args:
PARENT_IMAGE: ${REGISTRY}${COMPOSE_PROJECT_NAME}-nodejs:${VERSION:-latest}
volumes:
- .\src\sxastarter:C:\app
- .\src\nextjs:C:\app
environment:
SITECORE_API_HOST: "http://cm"
SITECORE_API_HOST: "https://xmcloudcm.localhost"
NEXTJS_DIST_DIR: ".next-container"
PUBLIC_URL: "https://${RENDERING_HOST}"
JSS_EDITING_SECRET: ${JSS_EDITING_SECRET}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
ID: "<SITECORE-API-KEY>"
ID: "804a2f62-4a78-4eed-96f5-2d5f4b0bb522"
Parent: "59b41b5f-e22e-460b-941e-fb64fe8da8fc"
Template: "a6868d65-d612-401f-a40a-cd5ba0857b81"
Path: /sitecore/system/Settings/Services/API Keys/<SITENAME>
Path: /sitecore/system/Settings/Services/API Keys/xmcloudpreview
SharedFields:
- ID: "780c8e48-fe03-4a73-90dc-9bb5296b95d7"
Hint: CORS Origins
Expand Down
2 changes: 1 addition & 1 deletion sitecore.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"[email protected]"
],
"serialization": {
"defaultMaxRelativeItemPathLength": 100,
"defaultMaxRelativeItemPathLength": 150,
"defaultModuleRelativeSerializationPath": "items",
"removeOrphansForRoles": true,
"continueOnItemFailure": false,
Expand Down
77 changes: 77 additions & 0 deletions src/EspireDemo.Layout.module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"namespace": "EspireDemo.Layout",

"items": {
"includes": [
{
"name": "EspireDemo.Layout",
"path": "/sitecore/layout",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants",
"rules": [

{
"path": "/Layouts/Project",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Layouts",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "/Placeholder Settings/Project",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},

{
"path": "/Placeholder Settings/Feature/Page Content",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Placeholder Settings/Feature",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "/Placeholder Settings",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "/Renderings/Feature/JSS Experience Accelerator",
"scope": "ignored"
},
{
"path": "/Renderings/Feature/Experience Accelerator",
"scope": "ignored"
},
{
"path": "/Renderings/Feature",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},

{
"path": "/Renderings/Project",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Renderings",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "*",
"scope": "ignored"
}
]
}

]
}
}
36 changes: 36 additions & 0 deletions src/EspireDemo.MediaLibrary.module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"namespace": "EspireDemo.Library",

"items": {
"includes": [
{
"name": "EspireDemo.Media Library",
"path": "/sitecore/media library",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants",
"rules": [
{
"path": "/Feature",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "ignored"
},
{
"path": "/Project/EspireDemo",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Project",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "*",
"scope": "ignored"
}
]
}

]
}
}
16 changes: 16 additions & 0 deletions src/EspireDemo.Site.module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"namespace": "EspireDemo.Site",
"references": ["EspireDemo.Template"],
"items": {
"includes": [
{
"name": "EspireDemo.Site",
"path": "/sitecore/content/EspireDemo",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"

}

]
}
}
63 changes: 63 additions & 0 deletions src/EspireDemo.System.module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"namespace": "EspireDemo.System",

"items": {
"includes": [
{
"name": "EspireDemo.System",
"path": "/sitecore/system",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants",
"rules": [

{
"path": "/Dictionary",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Modules/Layout Service/Rendering Contents Resolvers/Espire Upgrade",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Modules/Layout Service/Rendering Contents Resolvers",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "/Modules/Layout Service",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "/Modules",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "/Settings/Services/API Keys",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Settings/Services",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},
{
"path": "/Settings",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "SingleItem"
},

{
"path": "*",
"scope": "ignored"
}
]
}

]
}
}
44 changes: 44 additions & 0 deletions src/EspireDemo.Template.module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"namespace": "EspireDemo.Template",

"items": {
"includes": [
{
"name": "EspireDemo.Template",
"path": "/sitecore/templates",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants",
"rules": [
{
"path": "/Feature/Experience Accelerator",
"scope": "ignored"
},
{
"path": "/Feature/JSS Experience Accelerator",
"scope": "ignored"
},
{
"path": "/Feature",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/System",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "/Project",
"allowedPushOperations": "createUpdateAndDelete",
"scope": "itemAndDescendants"
},
{
"path": "*",
"scope": "ignored"
}
]
}

]
}
}
Loading