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

Share to self-hosted server #654

Open
h-sigma opened this issue Oct 12, 2023 · 1 comment
Open

Share to self-hosted server #654

h-sigma opened this issue Oct 12, 2023 · 1 comment

Comments

@h-sigma
Copy link

h-sigma commented Oct 12, 2023

Here I am, the person who has to request a self-hosted solution for anything that relies on a 3rd party ^^

The feature I'd like to request is to allow the clockwork share feature to be hooked to a self hosted server. Some reasons and benefits:

  • Data will not be published to a "unique-yet-still-public" URL. There would be some authorization in place.
  • It would make the share feature viable for developers who'd like to use clockwork in production (in on-demand mode, I hope).
  • Arbitrary share sizes. Currently, clockwork ingest can't handle requests with profiling data and throws a 413 Entity Too Large.

What would the effort required for that be like? And is this something you're even open to? I don't know how the share service server works.

@itsgoingd
Copy link
Owner

Hey, that's a perfectly reasonable request. :) The share feature was actually built with this use-case in mind, but it takes a bit of tinkering to make it work.

The share service itself is a simple open-source Laravel application. Unfortunately it's entirely undocumented, but if you are familiar with Laravel, you should not have much trouble to get it working. You might have to use an older PHP version though, as it hasn't been updated in a while. You can find it here - https://github.com/underground-works/clockwork-share

You will also have to build a custom version of the app/extension, since the sharing URL is configured as an env variable at build time. To do so, set VUE_APP_SHARING_URL to your own sharing service endpoint and follow the build instructions in the readme. You can find the source here - https://github.com/underground-works/clockwork-app/tree/v5

We can totally make this configurable in-app in future, but it will take a while, since there are no new releases planned for the near future.

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

No branches or pull requests

2 participants