No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    quasar dev command to use https

    Help
    4
    6
    4680
    Loading More Posts
    • 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.
    • metcarob
      metcarob last edited by

      Hi,
      I am trying to get google auth working in my quasar app.
      My google auth console will redirect the user to a https url (in my case I have set it to https://localhost:8080/auth/google
      The problem is when I run the command ‘quasar dev’ on my local machine the urls are all http not https:
      http://localhost:8080/auth/google
      Can I provide a certificate to the ‘quasar dev’ command to run in https mode on my local machine?
      Robert

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Basically ‘quasar dev’ starts up an express server with webpack middleware. Take a look at ‘/build/script.dev.js’. This is the place where you need to make the necessary changes that you want for the Express server to run on HTTPS.

        1 Reply Last reply Reply Quote 0
        • RichAyotte
          RichAyotte last edited by

          Here’s what I came up with. https://gist.github.com/RichAyotte/8243ebf768f059a634206a201f5c5851

          1 Reply Last reply Reply Quote 2
          • R
            rconstantine last edited by

            Is this still valid? I don’t see a /build/script.dev.js in my file structure anywhere. What am I missing?

            1 Reply Last reply Reply Quote 0
            • rstoenescu
              rstoenescu Admin last edited by

              @rconstantine For v0.15+, quasar.conf > devServer > https: true

              1 Reply Last reply Reply Quote 2
              • R
                rconstantine last edited by

                @rstoenescu Thanks for the reply. I tried to specify my own key and cert but when I try to import fs so I can load them, I get an error. See this: https://forum.quasar-framework.org/topic/2594/how-do-you-setup-https-for-both-dev-and-prod-with-your-own-keys-and-certs/2

                Thanks for all of your work on Quasar.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post