HTTPS uses port 443.
Why do you want to use another port?
To make that work you need to configure nginx to serve both port 443 and port 3000.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have vue-spa app which runs in development on subdomain.domain.test using valet. domain.test is secured over HTTPS and when I access https://subdomain.domain.test everything is fine. But if I reach https://subdomain.domain.test:3000 with "vite serve" the browser gives me "Privacy error". When I "proceed unsafely" the app works fine but without HTTPS. How to secure with this specific port? Thanks in advance.
Please or to participate in this conversation.