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

document specific configuration #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hairylime
Copy link

I raised an issue to be able to configure multiple webhooks for different types, and this PR addresses that - however I ran into a more pressing related need.

We need different headers for different documents, but after reviewing the chrome print handling and html-chrome-pdf, the only way this seems possible is via the printOptions value in html-chrome-pdf - so I made this change to allow for configuring different headers. I left the existing configuration alone, so the webhook and generator configuration at the top level can be considered the default (if no doctype is specified or no webhook/generator is specified for a doctype.

Finally there didn't seem to be a way to select a s3 configuration, so I mapped this to doctype (otherwise it uses the full set as currently configured).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant