diff --git a/nuxt.config.ts b/nuxt.config.ts index 3181ca8..ded5cc4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -31,7 +31,7 @@ export default defineNuxtConfig({ }, image: { - domains: ["minioserver.nuttyshrimp.me"] + domains: ["minioserver.lecoutere.dev"] }, pwa: { @@ -80,4 +80,4 @@ export default defineNuxtConfig({ }, compatibilityDate: '2024-07-06', -}) \ No newline at end of file +}) diff --git a/prisma/seed.ts b/prisma/seed.ts index ef8b7ac..b87b1c2 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -37,7 +37,7 @@ async function main() { await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } @@ -45,7 +45,7 @@ async function main() { await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } @@ -53,42 +53,42 @@ async function main() { await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } }); await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } }); await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } }); await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } }); await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } }); await prisma.photo.create({ data: { - url: "https://minioserver.nuttyshrimp.me/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", + url: "https://minioserver.lecoutere.dev/pov-clone/010f5c97-2b5e-498f-a815-13608fab58ff.jpg", user_id: "jyqef0q132pi4kn", event_id: 2, } diff --git a/server/api/events/[id]/photos/index.post.ts b/server/api/events/[id]/photos/index.post.ts index f680dcb..0b08003 100644 --- a/server/api/events/[id]/photos/index.post.ts +++ b/server/api/events/[id]/photos/index.post.ts @@ -51,7 +51,7 @@ export default defineEventHandler(async (event) => { await prisma.photo.create({ data: { - url: `https://minioserver.nuttyshrimp.me/pov-clone/${uuid}.jpg`, + url: `https://minioserver.lecoutere.dev/pov-clone/${uuid}.jpg`, event_id: Number(id), user_id: event.context.user.id, } diff --git a/server/util/minio.ts b/server/util/minio.ts index b2166e7..e529c2f 100644 --- a/server/util/minio.ts +++ b/server/util/minio.ts @@ -4,7 +4,7 @@ import { v4 } from 'uuid'; const config = useRuntimeConfig(); export const minioClient = new Minio.Client({ - endPoint: 'minioserver.nuttyshrimp.me', + endPoint: 'minioserver.lecoutere.dev', useSSL: true, port: 443, accessKey: config.minioAccessKey,