Reputation: 2388
as above.
situation:
I want to customize Sling referrer config (org.apache.sling.security.impl.ReferrerFilter) in all environments (author and publishers). I created an XML file with custom config. Thanks
Tests/observations:
ui.apps/src/main/content/jcr_root/apps/mysite/config
ui.apps/src/main/content/jcr_root/apps/mysite/configs/config
After building the code package in my local mac, I then uploaded and installed the code package in the sandbox author but Sling referrer does not show my custom config. On the sandbox publisher, it's the same situation.
ui.apps/src/main/content/jcr_root/apps/mysite/configs/config/config.author
This time it works. I can see my custom config in sandbox author.
ui.apps/src/main/content/jcr_root/apps/mysite/configs/config/config.publish
This time it works. I can see my custom config in sandbox publisher.
This is a copy of my OSGI config.
➜ cat org.apache.sling.security.impl.ReferrerFilter.xml
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" allow.hosts="[mysite.my-sso-provider.com,mysite-sandbox.my-sso-provider.com]"/>
background info: We are currently on 6.4.x. We are testing our custom code so we can upgrade to 6.5.x. AMS has provided a sandbox environment (1 author, 1 publisher, 1 dispatcher, 1 load balancer and cloudfront) for us to play around with.
Upvotes: 0
Views: 882
Reputation: 2081
Under /apps/your-project/config
is enough to be caught for both author and publish run modes.
Upvotes: 1