Deploy Strapi on Digital Ocean Full Guide
Вставка
- Опубліковано 19 вер 2024
- m.do.co/c/254a... ($200 free trial)
docs.strapi.io...
www.npmjs.com/...
Code to add to middlewares.ts file:
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"connect-src": ["'self'", "https:"],
"img-src": [
"'self'",
"data:",
"blob:",
"*.digitaloceanspaces.com"
],
"media-src": ["'self'", "data:", "blob:"],
upgradeInsecureRequests: null,
},
},
},
}
Words can't express how much I appreciate this. You saved me a lot of time and trouble. I wish you everything you want.
One of those things where this is the exact thing I needed! I have been stuck with a blog that I am making with strapi and sveltekit. Deploying strapi became a nightmare and cloudinary doesn't work in my country si was literally trying to figure this out! Thank you!!!
Fantastic guide! Dude I honestly wish you have a fantastic year.
thanks a lot!! it's really good guide and a perfect explanation... it's sad that you don't have enough subscribers
Really good guide, was exactly what I was looking to do you've saved me a lot of time 🙏
Great video ! Exactly what i was trying to achieve ! You saved me a lot of time, thank you a lot (i subscribed) !
I got a question for you, do you think for a small/middle traffic website, i should deploy my next js blog as static files or ssr ?
Thank you man. I really, really, really appreciate it.
godly level
Thanks for this tutorial man!
Thx Kaizne 😉
That was helpful 🎉🎉
Really good tutorial, helped me out a lot. But I just wanted to give a warning to anyone wanting to replicate it - the strapi-provider-upload-do package appears to be outdated. I could be wrong but I've spent two days trying to get it to work, there hasn't been an update to it in 9 months, and all the documentation I can find is outdated. You (and I lol) will have to find another way to host your images.
i just tried and it worked
Awesome! Thanks a lot!
Thanks Bro.
Amazing, thank you so much!
Thank you so much mate!
There is an issue where videos (or maybe just larger files) don't contain "https:/" when uploaded. This makes video preview not work in strapi and can also cause issues on the frontend.
I have created strapi project on my local and my .env file looks like this ->
APP_KEYS="toBeModified1,toBeModified2"
API_TOKEN_SALT=tobemodified
ADMIN_JWT_SECRET=tobemodified
TRANSFER_TOKEN_SALT=tobemodified
JWT_SECRET=tobemodified
Is this correct?
Great guide.
Thanks for this, really helpful. I'm plugging in a DO bucket that already has images in. Strapi doesn't seem to pull them through for me though. Is that just how it works or do you know if I need to configure something else?
this is gold
Thankyou
thank for share
Thanks ❤❤❤❤❤
Brother I use auto generated domain
Publically any problem for security purpose
Or custom domain better therefore my backend project
Please reply
For backend, using an autogenerated domain is fine as long as you restrict access to your front end only and not to the public.
exactly!@@KaizneCodes
Good thatks _)
Could you please tell me where can I find url of deployed version to use get, post etc requests in Postman?
It should be the app url, if you go into the apps tab on digital ocean or click into your project, in my case since my project name is "digital-ocean-strapi-example" it is like this: digital-ocean-strapi-example-h2iio.ondigitalocean.app/ and then to access the api you append api to the end of the url like this: digital-ocean-strapi-example-h2iio.ondigitalocean.app/api, more info can be found here: docs.strapi.io/dev-docs/api/rest
Thanks I know it’s main url+ / example . I could find them in a role section. Thanks a lot
Thank you!@@KaizneCodes
be regular
kneel down and appreciate the free tutorial
@@francisyang4718 yeah i have appreciated it . but who the F are you say it ??