Skip to content

Commit

Permalink
local dev config for universal editor
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Sep 12, 2024
1 parent ce30f5a commit f02c0b2
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config-definition/src/main/environments/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ nodes:
config:
contentPackage.group: adaptto-xwalk

app:
# Enable local development configuration
localDevConfig: true

quickstart:
# Enable Apache Sling DavEx Servlet to be able to use CRXDE Lite
enableDavEx: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,26 @@ files:
- url: mvn:to.adapt.xwalk/to.adapt.xwalk.components.ui.apps//zip
dir: packages

# AEM OSGi System Configuration
- file: local-dev-config.osgiconfig.json
dir: packages
template: local-dev-config.osgiconfig.json.hbs
condition: ${app.localDevConfig}
postProcessors:
- aem-contentpackage-osgiconfig
postProcessorOptions:
contentPackage:
name: local-dev-config
rootPath: /apps/local-dev-config/config
filters:
- filter: /apps/local-dev-config/config



# Defines configuration parameters and default values
config:
contentPackage:
group: adaptto-xwalk
version: ${version}
app:
localDevConfig: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"configurations": {

{{!-- Local development with Univesal Editor --}}
"com.day.crx.security.token.impl.impl.TokenAuthenticationHandler": {
"token.required.attr": "none",
{{!-- Switch from 'Lax' to 'None' --}}
"token.samesite.cookie.attr": "None"
},
"org.apache.sling.engine.impl.SlingMainServlet": {
"sling.max.calls": 1500,
{{!-- Remove entry 'X-FRAME-OPTIONS: SAMEORIGIN ' --}}
"sling.additional.response.headers": ["X-Content-Type-Options=nosniff"]
},
"com.adobe.aem.wcm.franklin.internal.UniversalEditorSettings": {
"plugin": "$[env:AEM_XWALK_AUE_PLUGIN;default=xwalk]",
{{!-- Add endpoint https://localhost:8000 as fallback --}}
"endpoint": "$[env:AEM_XWALK_AUE_ENDPOINT;default=https://localhost:8000]"
}

}
}

0 comments on commit f02c0b2

Please sign in to comment.