Configure Vite to use HTTPS when HTTPS is enabled
Overview
Configure Vite to use HTTPS when HTTPS is enabled.
When Vite is running without HTTP/2, it's extremely slow and it can crash HTTP router due to exceeded number of concurrent requests:
This is the smallest iteration to make Vite performant and also compatible with HTTP router. This also requires gitlab!182264 (merged)
An alternative bigger proposal using Nginx can be found at: #2382
This issue was spun off from #2382 (comment 2360497496)
Current workflow
graph LR
subgraph cell2
direction LR
workhorse2 --> rails2
rails2 --> vite2
end
subgraph cell1
direction LR
workhorse1 --> rails1
rails1 --> vite1
end
browser --> http-router
http-router --> workhorse1
http-router --> workhorse2
Updated workflow
graph LR
subgraph cell2
direction LR
workhorse2 --> rails2
vite2
end
subgraph cell1
direction LR
workhorse1 --> rails1
vite1
end
browser --> vite1
browser --> vite2
browser --> http-router
http-router --> workhorse1
http-router --> workhorse2
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate (optional)
Proposal (optional)
Environment (optional)
- Operating system name:
<!-- output of `uname -a` command --> - Architecture:
<!-- output of `arch` or `uname -m` command --> - The contents of your
gdk.yml(if any) - Ruby version:
<!-- output of `ruby --version` command --> - GDK version:
<!-- output of `git rev-parse --short HEAD` command -->
Edited by Lin Jen-Shin