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
[PDF] Need different PdfViewerCaConfig on publish #1144
Comments
Why would you have different configurations on publish? Could you please elaborate? |
Let's suppose we have domains like this: author -> author.my-project.com According to Adobe Document Services we need a separate configuration per domain. If I use the config from author -> author.my-project.com then PDF Viewer component does not work, because it is used on |
I haven't tested it but I think you can use the OSGI configuration Make a configuration for this and scope that configuration to author runmode. |
Thanks @ky940819, |
We discussed this topic internally. One solution would be to introduce a specific |
Thanks @jckautzmann , |
PDFViewer component needs context aware config
com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig
which varies per domain.As stated in Adobe Document Services documentation: "Your Credentials is restricted to the domain you enter here, plus any subdomains. It is recommended that you create a separate Credentials for each sub-domain." - so we need different configurations for the author and for the publish.
Let's suppose that we have multiple sites with different domains. We also want the PDFViewer component to work on the author.
Here is example content structure:
and corresponding configuration:
On
/content/my-project/siteA
we setsling:configRef
to/conf/my-project/siteA
and simmilary on/content/my-project/siteB
.We have added the required configuration for the author domain on the author instance.
Now everything works fine on the author, but on publish I need to have different configurations.
Do I need to go to every publish and change it? This sounds rather troublesome.
Ideally, I would like to be able to edit the configuration on the author and replicate the changes to all publish instances.
We have thought of setting different
sling:configRef
at/content/my-project/siteA
on author (/conf/my-project.author/siteA
) and different on publish (/conf/my-project.publish/siteA
) but this is not ideal either, because it can be overriden when author activate the /content/my-project/siteA
.Do you gays have some recommendations for keeping and maintaining such configuration?
The text was updated successfully, but these errors were encountered: