Skip to content

Commit

Permalink
chore: minio moved to new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
NuttyShrimp committed Sep 18, 2024
1 parent 8b92513 commit 197ace0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineNuxtConfig({
},

image: {
domains: ["minioserver.nuttyshrimp.me"]
domains: ["minioserver.lecoutere.dev"]
},

pwa: {
Expand Down Expand Up @@ -80,4 +80,4 @@ export default defineNuxtConfig({
},

compatibilityDate: '2024-07-06',
})
})
16 changes: 8 additions & 8 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,58 +37,58 @@ 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,
}
});
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,
}
Expand Down
2 changes: 1 addition & 1 deletion server/api/events/[id]/photos/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion server/util/minio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 197ace0

Please sign in to comment.