WaspW
Wasp2y ago
wardbox

Trying to run wasp over https locally, permission denied

I'm trying to run wasp over https locally to test oauth that requires https. I tried using the plugin-basic-ssl that comes with vite like so and it actually worked for a bit, but I had to run sudo wasp start to get it to work. When i tried running it again I got issues with not being able to find some of my modules and it seems something odd is happening when building wasp with sudo. If i run without sudo I just get this error:

[ Client!] error when starting dev server:
[ Client!] Error: listen EACCES: permission denied 127.0.0.1:443
[ Client!]     at Http2SecureServer.setupListenHandle [as _listen2] (node:net:1881:21)
[ Client!]     at listenInCluster (node:net:1946:12)
[ Client!]     at GetAddrInfoReqWrap.doListen [as callback] (node:net:2116:7)
[ Client!]     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)


my vite config that worked with sudo wasp start
import { defineConfig } from "vite";
import basicSsl from "@vitejs/plugin-basic-ssl";

export default defineConfig({
  server: {
    open: false,
    host: "local.mydomain.com",
    port: 443,
  },
  plugins: [
    basicSsl({
      name: "test",
    }),
  ],
});
Was this page helpful?