Skip to content

Commit

Permalink
force https on badge urls (to work for prod)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocicerchia committed Sep 7, 2024
1 parent ad36a7b commit 604f00b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/routes/badge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pugx_badge_version:
latest: "stable"
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
style: "flat|flat-square|for-the-badge|plastic"
Expand All @@ -18,6 +19,7 @@ pugx_badge_version_latest:
latest: "stable"
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
latest: "stable|unstable"
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
Expand All @@ -31,6 +33,7 @@ pugx_badge_license:
defaults:
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
style: "flat|flat-square|for-the-badge|plastic"
Expand All @@ -44,6 +47,7 @@ pugx_badge_download:
type: "total"
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
style: "flat|flat-square|for-the-badge|plastic"
Expand All @@ -55,6 +59,7 @@ pugx_badge_download_type:
defaults:
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
type: "total|daily|monthly"
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
Expand All @@ -68,6 +73,7 @@ pugx_badge_composerlock:
defaults:
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
style: "flat|flat-square|for-the-badge|plastic"
Expand All @@ -80,6 +86,7 @@ pugx_badge_gitattributes:
defaults:
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
style: "flat|flat-square|for-the-badge|plastic"
Expand All @@ -92,6 +99,7 @@ pugx_badge_dependents:
defaults:
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
style: "flat|flat-square|for-the-badge|plastic"
Expand All @@ -104,6 +112,7 @@ pugx_badge_suggesters:
defaults:
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
style: "flat|flat-square|for-the-badge|plastic"
Expand All @@ -117,6 +126,7 @@ pugx_badge_circleci:
branch: "master"
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
branch: ".+"
Expand All @@ -130,6 +140,7 @@ pugx_badge_require:
defaults:
style: "flat"
_ext: "svg"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
type: ".+"
Expand Down
5 changes: 5 additions & 0 deletions config/routes/badge_redirect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ download_png_redirect:
_controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction
route: pugx_badge_download
permanent: true
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
methods: [GET]
Expand All @@ -15,6 +16,7 @@ download_type_png_redirect:
route: pugx_badge_download_type
permanent: true
type: "total"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
type: "total|daily|monthly"
Expand All @@ -26,6 +28,7 @@ badge_version_png_redirect:
_controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction
route: pugx_badge_version
permanent: true
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
methods: [GET]
Expand All @@ -37,6 +40,7 @@ version_latest_png_redirect:
route: pugx_badge_version_latest
permanent: true
latest: "stable"
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
type: "stable|unstable"
Expand All @@ -48,6 +52,7 @@ badge_license_png_redirect:
_controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction
route: pugx_badge_license
permanent: true
schemes: [https]
requirements:
repository: "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+?"
methods: [GET]

0 comments on commit 604f00b

Please sign in to comment.