Comments (6)
Ahhh I was looking at a test instance. I just tried a production one and it failed.... :(
I don't know when they changed this as it used to work in the past... 🤦
I'll see if we can have a workaround here. I have a few options and I'll update this thread once I have more info.
from caprover.
is there a way to reduce the size of the token= param in the webhook?
from caprover.
I just tried the webhook on github and it doesn't have the length limitation. What issue are you facing?
from caprover.
and your request url is longer than 255 characters?
bc mine gets cut off after 255 characters and cap rover returns the before mentioned 502 "jwt corrupted"
how is this jwt generated? it has nothing to do with the private key I'm pasting into the GitHub repo section, right?
from caprover.
at least a yay for replication :p thanks! maybe the token can be shortened as it's only used by cap rover anyways? or hashed again?
yeah I agree, and it worked before, but seems like they updated that requirement... kind of strange though as you can fill in a longer webhook in the UI. I have opened a ticket, but no response so far
from caprover.
Yea this is surely a bug on their end.
Token shortening requires some non trivial data store schema design. But I just found a temporary solution for this!!
- Create a new app on your CapRover instance (just a empty app)
- Enable HTTPS for the app
- Go to the HTTP Settings of the app and find this line:
set $upstream http://<%-s.localDomain%>:<%-s.containerHttpPort%>;
- Right below this line, add this block
location /mywebhookforapp1 {
proxy_pass <YOUR WEBHOOK URL>;
# the semicolon at the end of the URL is important
}
- Click on SAVE AND RESTART
- Now on github, change your webhook URL to `https://youremptyapp.your.domain.com/mywebhookforapp1
from caprover.
Related Issues (20)
- [Deployment Issue] Deploy from github using image doesn't work. HOT 2
- How to update the certificate of my self hosted registry? HOT 1
- Net Core 8.0 github actions deploy HOT 1
- Deployment Issue: SourceGuardian PHP Extension on One-Click App HOT 7
- [Deployment Issue] persistent storage not available during deployment HOT 1
- Caprover does not clean up registry HOT 1
- [Deployment Issue] React App Refresh Results in 404 Error Despite Nginx Configuration Modifications HOT 4
- Problem renewing the ssl certificate from caprover HOT 2
- [Question] Set source directory HOT 3
- [Question] Access CapRover dashboard through a secure connection HOT 4
- [Deployment Issue] 'Captain-definition file does not exist' after updating repo structure HOT 4
- Invalid credentials and Apps were incorrupted. HOT 1
- [Question] Can you use network_mode with CapRover HOT 1
- Recent Webhook malformed jet token HOT 4
- [Question] Is it possible to share captain overlay network between instances without joining swarm? HOT 1
- It is possible to config all in one nextcloud in caprover?
- HELP! CapRover (and all apps) send Error 521 after reboot HOT 1
- "caprover deploy -t ./deploy.tar" not working HOT 3
- Something bad happened while retrieving * app build logs. Too many wrong passwords... Wait for 30 seconds and retry. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caprover.