-
Notifications
You must be signed in to change notification settings - Fork 543
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
Make a staticman app instead of staticmanapp to avoid reaching quotas #243
Comments
@robinmetral I expect it to be completed by end of this month. |
Good to hear @Erised! |
@robinmetral Sure. I will let you know. |
Just a friendly wake-up call to @eduardoboucas. Staticman is awesome, but right now, it's hitting its limits and people are developing alternatives. Please find the time to develop a solution so we can continue using this fantastic app without this very annoying limitation. |
Hi everyone. I'm sorry that some people are frustrated with the project, I can relate to that. But please remember that the code is fully open-source, which means anyone can simply run their own instance, with their own GitHub account, and bypass all these limitations. The issue we're seeing here is really a problem with the free, public instance I decided to host for everyone. In hindsight, this probably wasn't the best of ideas, because it puts pressure on me to be the sole gatekeeper of this service. I've not abandoned the project and I'm thinking of solutions to solve both problems: the problem that a single GitHub account acting on behalf of everyone isn't maintainable, and the problem that in the current scheme of things, where the public instance that I run is the centrepiece of the project, I represent a bottleneck. For example, I'm keen on the idea of rebuilding Staticman as a Netlify function, so that effectively everyone is running their own instance (for free) rather than relying on a centralised service (which I'm covering the costs for). In this scenario, people would provide access to their own GitHub account, which commits would be made from, thus removing the issue of quota limits. All I can say is that your patience is much appreciated and I'd love to hear everyone's thoughts on how we can make this more manageable for everyone. |
@eduardoboucas The best solution in my opinion, would simply be a GitHub app. If repo A & repo B, install an app on their repos, each gets 5k hits per hour. Till then, I am also open to any discussion that how we can make it work for everybody. |
Thanks for the updates @eduardoboucas ! 🙌 A Netlify function would be great as a simpler solution to people wanting to self-host their instance. However one of the things I love with Staticman is how simple it is to set it up only using a Github repo! I think that many people would benefit from such a "centralized" service, be it for testing or to allow comments on small websites and blogs (GH pages for example), where setting up Netlify+AWS Lamba to run a self-hosted instance seems like a lot of trouble. In this case a Github app would probably be the best solution! @Erised can you consider making your working repo public so that we can take a look and maybe contribute? 🙂 |
@robinmetral Please give me a day or two. I want to finish a few tasks by myself. |
No reason to feel embarrassed at all! We all appreciate the effort you're putting in. Whenever you feel comfortable showing your code, I'm happy to review and help you change anything that needs tweaking. |
@eduardoboucas Thank you. It means a great deal. I am looking over staticman's code all the time to see how everything works. |
@Erised if you need any help I'd be happy to assist as well. |
Thanks for your reply @eduardoboucas. Staticman running in a netlify function sounds like a very good idea. I'm looking forward to you testing this out and, if found feasible, giving us feedback on how to set it up for ourselves. Keep up the good work :D |
If i understand things correctly, Netlify provides a way to translate form submissions into the Meanwhile, if i understand things correctly (and I may not) the If the above analysis is correct a few things would greatly help:
Sorry I don't have time to do it myself - but maybe someone else can contribute improvements here. My suggestion would be to start with just setting the Update: Was late when i originally posted this. While lying in bed i wondered why instead you don't just accept all invitations. Each time you getRepoInvites, just accept them all. This will keep the queue low. And, if you just schedule this to happen say each minute, then you won't need folks to hit the endpoint to connect at all. I'm assuming the point of this was only to trigger the invite acceptance. |
@rliebling great analysis, I didn't even think about that. I'm more than happy to provide a PR for this. |
Hi all. I had a go at implementing Staticman as a GitHub App, which should fix many of the issues people are seeing at the moment. Can I ask for some volunteers to help me test it? Here's how:
Any help is much appreciated. |
Great to hear the news from you! Not sure if i've just done something wrong but i'm getting Note that i'm using Hugo with the engimo them which has staticman support built in, but i've never successfully used staticman before (as my invitation was "not found"). Also I'm testing using Hugo on my localhost - assume the post-id stuff wouldn't cause the problem, but i mention in case i'm wrong. The request that's failing is (as copied from chrome debugger, removing user agent and cookies:
|
Thanks for the feedback. I’ll try to debug it tonight using your sample request and will come back with my findings. Thank you all for your patience. |
@rliebling Your site doesn't seem to be configured properly. I don't see a configuration file for Staticman on https://github.com/rliebling/my_blog. |
Ah! My bad! Had only configured locally and never pushed to GH as my invite had not been accepted. And, did this testing having forgotten all about that! Sorry - I should have checked and figured this out myself. I've fixed that now, however, and still getting Note: i've also enabled commenting on my live site now -- just not working yet (eg https://rich.liebling.us/posts/more_on_tech_debt/) |
@rliebling Your config is fine, it was an issue with an environment variable on the development instance. I've fixed it, tested again and it seems to be working. You can see a submission here: rliebling/my_blog@e36206d |
@eduardoboucas Thanks so much for this project, moving it to a github app, and for your help here! |
Thanks @eduardoboucas. This seems to be working great for me on my project. https://github.com/simonarnell/GDPRDPIAT |
I've updated the comment above to point to the new |
Removed Staticman integration: eduardoboucas/staticman#243
I don't have reCAPTCHA set but keep getting this error:
|
I think the v3 Staticman app may be broken, but I'm not certain. See #294 for more details. |
Thanks for this update. I'm sure the app just scaled past what his service
could handle. I'll probably look for another solution (like Netlify).
…On Sun, Jun 16, 2019, 1:19 PM Daniel Schroeder ***@***.***> wrote:
I think the v3 Staticman app may be broken, but I'm not certain. See #294
<#294> for more details.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#243?email_source=notifications&email_token=ACWVJSI7XOW6S6IXM4LQZBDP2ZY2VA5CNFSM4GJUOO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZRLOY#issuecomment-502470075>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWVJSLZAYHYQ5NCPNP7LXTP2ZY2VANCNFSM4GJUOO7A>
.
|
@pacollins That's a duplicate of #223. |
In the reCATPCHA section of your Staticman config, even if To avoid that you may either comment out the whole line (e.g. https://github.com/VincentTam/BJPubTest1) # reCaptcha
# Register your domain at https://www.google.com/recaptcha/ and choose reCAPTCHA V2
reCaptcha:
enabled: false
#siteKey: "6LdRBykTAAAAAFB46MnIu6ixuxwu9W1ihFF8G60Q"
# Encrypt reCaptcha secret key using Staticman /encrypt endpoint
# For more information, https://staticman.net/docs/encryption
#secret: "PznnZGu3P6eTHRPLORniSq+J61YEf+A9zmColXDM5icqF49gbunH51B8+h+i2IvewpuxtA9TFoK68TuhUp/X3YKmmqhXasegHYabY50fqF9nJh9npWNhvITdkQHeaOqnFXUIwxfiEeUt49Yoa2waRR7a5LdRAP3SVM8hz0KIBT4=" or use an empty string # reCaptcha
# Register your domain at https://www.google.com/recaptcha/ and choose reCAPTCHA V2
reCaptcha:
enabled: false
siteKey: ""
# Encrypt reCaptcha secret key using Staticman /encrypt endpoint
# For more information, https://staticman.net/docs/encryption
secret: "" Reference:
|
README update due to feedback in #9
[bugfix] related page
The public instance of Staticman is in trouble: API calls are now regularly hitting the Github quotas of 5000 hits per hour per user.
The issue is that every comment on any site using this instance is going through the
staticmanapp
user, thereforestaticmanapp
easily reaches its API quotas.This causes the problems that have been repeatedly mentioned in #227, #222, or #242 for example.
I got in touch with the Github staff about this and here's their recommendation:
@eduardoboucas you know your software - would this be possible?
The text was updated successfully, but these errors were encountered: