Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Directus
  3. Directus + Gridsome

Directus + Gridsome

Scheduled Pinned Locked Moved Directus
11 Posts 5 Posters 1.8k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #1

      Hi folks. Wondering if anyone else has tried to use directus as a data source for a gridsome static site? I have been running into issues with "unauthorized request" using the gridsome-source-directus plugin and was wondering if this was some sort of issue specific to the Cloudron instance. I'm also asking the package maintainer.

      1 Reply Last reply
      1
      • marcusquinnM Offline
        marcusquinnM Offline
        marcusquinn
        wrote on last edited by
        #2

        Interested to follow this, maybe a useful link:

        • https://kodius.com/blog/using-gridsome-and-directus/

        Be curious to see if Gatsby or Hugo could also be options?

        Web Design https://www.evergreen.je
        Development https://brandlight.org
        Life https://marcusquinn.com

        ? 1 Reply Last reply
        0
        • marcusquinnM marcusquinn

          Interested to follow this, maybe a useful link:

          • https://kodius.com/blog/using-gridsome-and-directus/

          Be curious to see if Gatsby or Hugo could also be options?

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by A Former User
          #3

          @marcusquinn lol I was actually following that guide and encountered this error.

          Screenshot 2020-10-27 165359.png

          murgeroM 1 Reply Last reply
          1
          • ? A Former User

            @marcusquinn lol I was actually following that guide and encountered this error.

            Screenshot 2020-10-27 165359.png

            murgeroM Offline
            murgeroM Offline
            murgero
            App Dev
            wrote on last edited by
            #4

            @atrilahiji Are the credentials / user / api key you are using authorized to connect externally?

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~

            ? 1 Reply Last reply
            0
            • murgeroM murgero

              @atrilahiji Are the credentials / user / api key you are using authorized to connect externally?

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #5

              @murgero I think so? Not sure how I would check tbh

              1 Reply Last reply
              0
              • marcusquinnM Offline
                marcusquinnM Offline
                marcusquinn
                wrote on last edited by
                #6

                Not looked but maybe Bigcommerce provide sandbox accounts for API testing?

                Web Design https://www.evergreen.je
                Development https://brandlight.org
                Life https://marcusquinn.com

                1 Reply Last reply
                0
                • robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #7

                  If you want to avoid AWS, Netlify.com offers free JAM stack hosting too.

                  Conscious tech

                  ? 1 Reply Last reply
                  0
                  • robiR robi

                    If you want to avoid AWS, Netlify.com offers free JAM stack hosting too.

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #8

                    @robi Correct me if I am wrong, but doesn't Netlify use AWS for their services?

                    Also Surfer is really an excellent alternative for JAMstack hosting that works well right here on Cloudron.

                    My use case was using GitLab runner to deploy static changes to Surfer and use something like Directus to manage blog posts.

                    1 Reply Last reply
                    2
                    • robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #9

                      @atrilahiji said in Directus + Gridsome:

                      @robi Correct me if I am wrong, but doesn't Netlify use AWS for their services?

                      They're a competitor AFAIK.

                      Also Surfer is really an excellent alternative for JAMstack hosting that works well right here on Cloudron.

                      I don't see how that's true alternative.

                      My use case was using GitLab runner to deploy static changes to Surfer and use something like Directus to manage blog posts.

                      Should work.

                      Conscious tech

                      ? 1 Reply Last reply
                      0
                      • robiR robi

                        @atrilahiji said in Directus + Gridsome:

                        @robi Correct me if I am wrong, but doesn't Netlify use AWS for their services?

                        They're a competitor AFAIK.

                        Also Surfer is really an excellent alternative for JAMstack hosting that works well right here on Cloudron.

                        I don't see how that's true alternative.

                        My use case was using GitLab runner to deploy static changes to Surfer and use something like Directus to manage blog posts.

                        Should work.

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by A Former User
                        #10

                        @robi oh I figured for static hosting it’s an alternative. Until we get something like openfaas on cloudron, Netlify is a good option. But for a static site with some dynamic content surfer + a headless cms works well and doesn’t require making a netlify account. You also have to pay to use a self hosted GitLab, which to me is already a minus on the side of netlify. Not saying it’s bad. Just that I personally don’t want to use it unless I can use my own GitLab. And even then I prefer the static hosting to be on my own server.

                        I do know their cloud functions are AWS lambda functions so I figured their hosting would just be S3 + Cloudfront or something

                        Either way this has greatly diverged from the original question I was asking.

                        1 Reply Last reply
                        1
                        • P Offline
                          P Offline
                          plusone-nick
                          wrote on last edited by
                          #11

                          @atrilahiji Not exactly the same use case but I am unable to authenticate with the (/auth/login) endpoint using Postman. Unfortunately the Directus docs and youtube channel are not very elaborate so I am hoping for any guidance here 😁

                          (Please pardon my ignorance - self taught "dev" here 😬)

                          There is this

                          but its 3 + years old where the version used has totally different API endpoints + he uses another API testing tool for Mac...

                          Not sure what's wrong with my POST request πŸ˜•

                          9c869a58-77a2-4ca5-8fb0-88d3607d75c6-image.png

                          Line 287: **BOLD**
                          
                          if (!function_exists('create_unknown_project_app')) {
                              /**
                               * Creates a simple Application when the project name is unknown.
                               *
                               * @param string $basePath
                               * @param array  $config
                               * @param array  $values
                               *
                               * @return Application
                               */
                              function create_unknown_project_app($basePath, array $config = [], array $values = [])
                              {
                                  return create_default_app($basePath, $config, array_merge($values, [
                                      'notFoundHandler' => function () {
                                          return function () {
                                              **throw new UnauthorizedException('Unauthorized request');**
                          

                          Based off of the error / line & function its advising it cant create a new project but what does that have to do with /auth/login?

                          I'm lostπŸ₯΄ lol!! - let me know if this should be posted in Support or another post within this section
                          Any help is appreciated! βœŒπŸ–€

                          βœŒπŸ’™+1

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Bookmarks
                            • Search