-
-
Notifications
You must be signed in to change notification settings - Fork 873
fix(mercure)!: fix Mercure transport configuration #871
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
base: main
Are you sure you want to change the base?
Conversation
bdd981d to
5e34cb6
Compare
|
Hello ! I faced the same issue (having the bolt.db file at my project root). With this MR it's mandatory to use the bolt transport driver by default. Do you think it's interesting to also add variable for the transport type like this: Or maybe if we define another transport in the |
|
Hi, @shulard! Adding the ability to configure transports via an environment variable like Defining a different transport in the In some of my projects, I removed the entire |
|
Ok thank you for the feedback. If it works in |
|
IMHO we should just set |
Do you think it's really important to have a specific volume ? If we put the db file in |
|
You're right, data is good enough. |
|
WDYT of dunglas/mercure#1139? This should entirely remove this problem. |
This would be nice since it'll not require any configuration in that repository 😄. |
This looks great to me! I'll leave this PR in its current state for now so that anyone who encounters the same issue can take advantage of this fix. |
|
I tagged the new release. Removing old directives should be enough now. |
| # The transport to use | ||
| transport bolt { | ||
| path {$MERCURE_BOLT_PATH:/data/mercure.db} | ||
| {$MERCURE_BOLT_EXTRA_DIRECTIVES} | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # The transport to use | |
| transport bolt { | |
| path {$MERCURE_BOLT_PATH:/data/mercure.db} | |
| {$MERCURE_BOLT_EXTRA_DIRECTIVES} | |
| } |
| | `MERCURE_BOLT_PATH` | path of the Bolt database file | `/data/mercure.db` | | ||
| | `MERCURE_BOLT_EXTRA_DIRECTIVES` | a list of extra [Mercure Bolt Adapter directives](https://mercure.rocks/docs/hub/config#bolt-adapter), one per line | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `MERCURE_BOLT_PATH` | path of the Bolt database file | `/data/mercure.db` | | |
| | `MERCURE_BOLT_EXTRA_DIRECTIVES` | a list of extra [Mercure Bolt Adapter directives](https://mercure.rocks/docs/hub/config#bolt-adapter), one per line | | |
Fixes #870
The
MERCURE_TRANSPORT_URLenv has been removed and replaced by themercure.transportCaddy directive.BREAKING CHANGE: The
MERCURE_TRANSPORT_URLenv is no longer available.Update guide
Instead of using the
MERCURE_TRANSPORT_URLenv, use theMERCURE_BOLT_PATHandMERCURE_BOLT_EXTRA_DIRECTIVESenvs.Old usage:
New usage:
Old usage:
New usage:
See https://github.com/dunglas/mercure/blob/c7cf56e647e87aa814331e5ebf6672cae1ed2a54/docs/UPGRADE.md#017