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,
    },
    },
    },
    }

КОМЕНТАРІ • 35

  • @ataykula995
    @ataykula995 Рік тому +1

    Words can't express how much I appreciate this. You saved me a lot of time and trouble. I wish you everything you want.

  • @nqomlilo
    @nqomlilo Рік тому

    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!!!

  • @karma3040
    @karma3040 6 місяців тому

    Fantastic guide! Dude I honestly wish you have a fantastic year.

  • @grindco732
    @grindco732 7 місяців тому

    thanks a lot!! it's really good guide and a perfect explanation... it's sad that you don't have enough subscribers

  • @Bumsecks
    @Bumsecks Рік тому

    Really good guide, was exactly what I was looking to do you've saved me a lot of time 🙏

  • @Milo_1010_
    @Milo_1010_ 2 місяці тому

    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 ?

  • @11vag
    @11vag 11 місяців тому

    Thank you man. I really, really, really appreciate it.

  • @francisyang4718
    @francisyang4718 Рік тому +2

    godly level

  • @fabriciocunhadev5791
    @fabriciocunhadev5791 8 місяців тому

    Thanks for this tutorial man!

  • @borisbarzotto5785
    @borisbarzotto5785 Місяць тому

    Thx Kaizne 😉

  • @AkwadNet1
    @AkwadNet1 28 днів тому

    That was helpful 🎉🎉

  • @seven1104
    @seven1104 8 місяців тому

    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.

    • @Milo_1010_
      @Milo_1010_ 2 місяці тому

      i just tried and it worked

  • @teinett
    @teinett Рік тому +1

    Awesome! Thanks a lot!

  • @Joseph_David_
    @Joseph_David_ 4 місяці тому

    Thanks Bro.

  • @ChristaMeelker
    @ChristaMeelker Рік тому

    Amazing, thank you so much!

  • @ol1175
    @ol1175 Рік тому

    Thank you so much mate!

  • @magikarp2063
    @magikarp2063 11 місяців тому

    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.

  • @Abhishekverma-yj1or
    @Abhishekverma-yj1or 20 днів тому

    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?

  • @magikarp2063
    @magikarp2063 Рік тому

    Great guide.

  • @jonnowitts
    @jonnowitts 11 місяців тому

    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?

  • @cristiancoppari
    @cristiancoppari Рік тому

    this is gold

  • @balee9601
    @balee9601 10 місяців тому

    Thankyou

  • @jay.kaykay
    @jay.kaykay Рік тому

    thank for share

  • @gousiyaart2515
    @gousiyaart2515 Рік тому

    Thanks ❤❤❤❤❤
    Brother I use auto generated domain
    Publically any problem for security purpose
    Or custom domain better therefore my backend project
    Please reply

    • @KaizneCodes
      @KaizneCodes  Рік тому

      For backend, using an autogenerated domain is fine as long as you restrict access to your front end only and not to the public.

    • @francisyang4718
      @francisyang4718 Рік тому

      exactly!@@KaizneCodes

  • @maksymkinash1582
    @maksymkinash1582 11 місяців тому

    Good thatks _)

  • @ol1175
    @ol1175 Рік тому

    Could you please tell me where can I find url of deployed version to use get, post etc requests in Postman?

    • @KaizneCodes
      @KaizneCodes  Рік тому +2

      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

    • @ol1175
      @ol1175 Рік тому

      Thanks I know it’s main url+ / example . I could find them in a role section. Thanks a lot

    • @francisyang4718
      @francisyang4718 Рік тому

      Thank you!@@KaizneCodes

  • @arupde6320
    @arupde6320 Рік тому

    be regular

    • @francisyang4718
      @francisyang4718 Рік тому +1

      kneel down and appreciate the free tutorial

    • @arupde6320
      @arupde6320 Рік тому

      @@francisyang4718 yeah i have appreciated it . but who the F are you say it ??