Skip to content

Commit

Permalink
feat: use dedicated domain for imagekit
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jan 3, 2025
1 parent 3426242 commit 5ab5260
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/backend/config/environments/production.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"s3": {
"screenshotsBucket": "argos-ci-production",
"publicImageBaseUrl": "https://ik.imagekit.io/argos/"
"publicImageBaseUrl": "https://files.argos-ci.com/"
},
"github": {
"marketplaceUrl": "https://github.com/marketplace/argos-ci"
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/config/environments/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"s3": {
"screenshotsBucket": "argos-ci-test",
"publicImageBaseUrl": "https://ik.imagekit.io/argos/test/"
"publicImageBaseUrl": "https://files.argos-ci.com/test/"
},
"pg": {
"connection": {
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const config = convict({
publicImageBaseUrl: {
doc: "Public URL for screenshots",
format: String,
default: "https://ik.imagekit.io/argos/development/",
default: "https://files.argos-ci.com/development/",
env: "S3_PUBLIC_IMAGE_BASE_URL",
},
},
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/web/app-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const installAppRouter = async (app: express.Application) => {
"data:",
"https://argos-ci.com",
// ImageKit images
"https://ik.imagekit.io",
"https://files.argos-ci.com",
// S3 images
"https://argos-ci-production.s3.eu-west-1.amazonaws.com",
// GitHub and GitLab avatars
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/util/image.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const IMAGEKIT_DOMAIN = "ik.imagekit.io";
const IMAGEKIT_DOMAIN = "files.argos-ci.com";

export function checkIsImageKitUrl(url: string) {
return new URL(url).hostname === IMAGEKIT_DOMAIN;
Expand Down

0 comments on commit 5ab5260

Please sign in to comment.