-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(nginx-website): allow setting redirections #1332
feat(nginx-website): allow setting redirections #1332
Conversation
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.
This may work, but the safer option would be new stats app to server these files directly.
If it can't be done quickly then the site should be rolled back (although old should be kept to not breaking people who have migrated there)
## Example: | ||
# - location: /plugin-installation-trend | ||
# returnedCode: 301 | ||
# destination: https://raw.githubusercontent.com/jenkins-infra/infra-statistics/gh-pages/ |
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.
This isn't the same API and may still cause breaking changes.
- There's no guarantee that consumers will follow redirects
- raw.githubusercontent returns a content-type of text/plain which may break consumers
I agree with that and the other points you mentioned, but the issue with serving these files directly from our service is that we don't know (and can't AFAIK) how much outbound bandwidth it could represent. |
If thats a concern is there any reason we moved off GitHub pages? |
+1 with @timja . This should justify a rollback and a re-architecturing of the model used if bandwidth is a problem. |
@timja @lemeurherveCB Just a point about the GitHub Pages: it only accepts a single CNAME. I'll continue in jenkins-infra/helpdesk#4132 |
Closed by jenkins-infra/stats.jenkins.io#168 (not needed anymore) |
This PR allows defining redirections (with
return
, preferable in most cases torewrite
) so we can for example avoid breaking existing (old.)stats.jenkins.io URLs which pointed to files on GitHub but are not served by the new frontend, used by far more than we/I though initially.Ref:
Example of usage
values.yaml:
Resulting nginx config: