I'm passing a webhook request from azure devops to my local jenkins. It's passing Nginx on OpnSense.
I read it does not give any clear message when the definition is invalid.
This is part of the request url: "/generic-webhook-trigger/invoke?token=mytoken/git/notifyCommit?url..."
The webhook url definition on devops is "/generic-webhook-trigger/invoke?token=mytoken", but it's also adding "/git/notifyCommit?url..." which creates a invalid url.
So i'm trying to remove "/git/notifyCommit?" from the url and replace it with "&".
But whatever i try to define as a URL rewriting rule (and add it to the location), it does not do anything, passing the original url.
Do you have any suggestions on the used parameters for the URL rewriting rule?
additionally I've also looked at the nginx.config and it validated with following test:
location = /git/notifyCommit {
rewrite ^/git/notifyCommit?$ /somePage break;
But it still did not rewrite the url at all.
I read it does not give any clear message when the definition is invalid.
This is part of the request url: "/generic-webhook-trigger/invoke?token=mytoken/git/notifyCommit?url..."
The webhook url definition on devops is "/generic-webhook-trigger/invoke?token=mytoken", but it's also adding "/git/notifyCommit?url..." which creates a invalid url.
So i'm trying to remove "/git/notifyCommit?" from the url and replace it with "&".
But whatever i try to define as a URL rewriting rule (and add it to the location), it does not do anything, passing the original url.
Do you have any suggestions on the used parameters for the URL rewriting rule?
additionally I've also looked at the nginx.config and it validated with following test:
location = /git/notifyCommit {
rewrite ^/git/notifyCommit?$ /somePage break;
But it still did not rewrite the url at all.
"