Require nginx, HTTPS and HTTP/2 for Vite
What does this merge request do and why?
Vite doesn't work properly without HTTPS and HTTP/2 (case 1, case 2). With HTTP/1.1 Vite can not load the page in a reasonable time because of how it fetches JavaScript.
This MR explicitly requires nginx, HTTPS and HTTP/2 to be configured prior to enabling Vite. We need all three of these because we're using Rails host to fetch these assets. With HTTPS only we're still using HTTP/1.1. HTTP/2 is not possible without HTTPS and without nginx (Workhorse server is still using HTTP/1.1 with HTTPS enabled).
This requirement will be removed once we complete these:
- Configure Vite to use HTTPS when HTTPS is enabled (#2452 - closed)
- Improve Vite's performance with HTTP router ena... (gitlab#520707 - closed)
Related Improve Vite's performance with HTTP router ena... (gitlab#520707 - closed).
Impacted categories
The following categories relate to this merge request:
-
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.
Merge request checklist
-
This MR references an issue describing the change. -
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. -
gdk doctortest added, if needed.