Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with running dev server on https mode. #14832

Closed
valiknet18 opened this issue Sep 7, 2022 · 1 comment
Closed

Issue with running dev server on https mode. #14832

valiknet18 opened this issue Sep 7, 2022 · 1 comment

Comments

@valiknet18
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v16.13.2
  • Nuxt Version: 3.0.0-rc.9
  • Nitro Version: 0.5.1
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: typescript, modules, css, build, postcss, components, vite, env, publicRuntimeConfig, tailwindcss, server
  • Runtime Modules: @formkit/nuxt@1.0.0-beta.9-f64c966, @pinia/nuxt@0.4.2, @nuxtjs/tailwindcss@5.3.2, @valentynchik/web-components@1.0.8
  • Build Modules: -

Reproduction

Create application with following config

server: {
    https: true,
},
vite: {
        plugins: [
        ],
        optimizeDeps: {
        },
        server: {
            https: true,
            hmr: {
                protocol: 'wss',
                clientPort: 443,
            }
        }
    },

and run
nuxt dev --https --ssl-cert ./cert-path --ssl-key ./key-path --host=host.test --port=80

Describe the bug

Hey. I'm trying to run my application with enabled https and with passing path to certs in args. But application run with error
request to https://127.0.0.1:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
It's so strange why application try to request 127.0.0.1 in case when my app running on custom host. May be i forgot to pass any additional configs?
I tried to google any info about this, but i didn't found anything.
Also i've tried to do hardcode replace host in built files to right values, and test with it, but it also fails with the same error, however direct go to this link loading a page right (after replace error display right url).
I will be appreciated if anybody helps me.

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

See note in nuxt/framework#7271.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants