Skip to content

Commit

Permalink
Web server: introduce endpoint for querying current repository version
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Aug 5, 2024
1 parent cae395f commit 8299cf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/files/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ apt.{$DOMAIN_NAME} {
handle /admin/* {
reverse_proxy unix//run/apiserver/server.sock
}
handle /latest_version {
respond "{$APT_LATEST_VERSION}"
}
handle {
redir https://storage.googleapis.com/{$GCLOUD_BUCKET_PREFIX}-server-edition-apt-repo/versions/{$APT_LATEST_VERSION}/public{uri}
}
Expand All @@ -38,6 +41,9 @@ yum.{$DOMAIN_NAME} {
handle /admin/* {
reverse_proxy unix//run/apiserver/server.sock
}
handle /latest_version {
respond "{$YUM_LATEST_VERSION}"
}
handle {
redir https://storage.googleapis.com/{$GCLOUD_BUCKET_PREFIX}-server-edition-yum-repo/versions/{$YUM_LATEST_VERSION}/public{uri}
}
Expand Down

0 comments on commit 8299cf2

Please sign in to comment.