From 60b8f103b6cb522d4b7c9f6358ce5586cd1e908a Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Mon, 14 Oct 2024 16:40:28 +0200 Subject: [PATCH] Svelte: Introduce support for the alpine route --- config_public_alpine.js | 19 +++++++++++++++++++ nginx.conf | 1 + src/routes/alpine/+page.svelte | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 config_public_alpine.js create mode 100644 src/routes/alpine/+page.svelte diff --git a/config_public_alpine.js b/config_public_alpine.js new file mode 100644 index 0000000..351fe23 --- /dev/null +++ b/config_public_alpine.js @@ -0,0 +1,19 @@ +// The root filesystem location +export const diskImageUrl = "wss://disks.webvm.io/alpine_20240307_i3_slimmed.ext2"; +// The root filesystem backend type +export const diskImageType = "cloud"; +// Print an introduction message about the technology +export const printIntro = false; +// Is a graphical display needed +export const needsDisplay = true; +// Executable full path (Required) +export const cmd = "/sbin/init"; +// Arguments, as an array (Required) +export const args = []; +// Optional extra parameters +export const opts = { + // User id + uid: 0, + // Group id + gid: 0 +}; diff --git a/nginx.conf b/nginx.conf index ac8a1ea..e446d41 100644 --- a/nginx.conf +++ b/nginx.conf @@ -38,6 +38,7 @@ http { add_header 'Cross-Origin-Opener-Policy' 'same-origin' always; add_header 'Cross-Origin-Embedder-Policy' 'require-corp' always; add_header 'Cross-Origin-Resource-Policy' 'cross-origin' always; + try_files $uri /index.html; } } } diff --git a/src/routes/alpine/+page.svelte b/src/routes/alpine/+page.svelte new file mode 100644 index 0000000..b3e7a7f --- /dev/null +++ b/src/routes/alpine/+page.svelte @@ -0,0 +1,6 @@ + + +