update URLs
This commit is contained in:
parent
1944f92c64
commit
f632da6195
@ -2,7 +2,7 @@ FROM docker.io/ubuntu:20.04
|
|||||||
|
|
||||||
LABEL maintainer="Jake Jarvis <jake@jarv.is>"
|
LABEL maintainer="Jake Jarvis <jake@jarv.is>"
|
||||||
LABEL repository="https://github.com/jakejarvis/y2k"
|
LABEL repository="https://github.com/jakejarvis/y2k"
|
||||||
LABEL homepage="https://y2k.app/"
|
LABEL homepage="https://jarv.is/y2k/"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# 💾 [Y2K Sandbox](https://y2k.app/) [](https://y2k.app/) [](https://status.jrvs.io/785127956/check/597930)
|
# 💾 [Y2K Sandbox](https://jarv.is/y2k/) [](https://jarv.is/y2k/) [](https://status.pipe.fail/check/597930)
|
||||||
|
|
||||||
Nostalgic time machine powered by on-demand Windows Me® VMs, [my first website](https://github.com/jakejarvis/my-first-website), and quarantine boredom. 📟
|
Nostalgic time machine powered by on-demand Windows Me® VMs, [my first website](https://github.com/jakejarvis/my-first-website), and quarantine boredom. 📟
|
||||||
|
|
||||||
[**📝 Read the blog post here.**](https://jarv.is/notes/y2k-sandbox/)
|
[**📝 Read the blog post here.**](https://jarv.is/notes/y2k-sandbox/)
|
||||||
|
|
||||||
<p align="center"><a href="https://y2k.app/"><img width="600" src="screenshot.png"></a></p>
|
<p align="center"><a href="https://jarv.is/y2k/"><img width="600" src="screenshot.png"></a></p>
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
|
3
build.sh
3
build.sh
@ -9,4 +9,5 @@ YOU_ARE_HERE="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
|
|||||||
test -f "$YOU_ARE_HERE"/container/hdd/hdd.img
|
test -f "$YOU_ARE_HERE"/container/hdd/hdd.img
|
||||||
|
|
||||||
# build the container & tag it locally
|
# build the container & tag it locally
|
||||||
docker build -t y2k:latest --squash --no-cache "$YOU_ARE_HERE"
|
docker build -t git.pipe.fail/jake/y2k:latest --squash --no-cache "$YOU_ARE_HERE"
|
||||||
|
docker push git.pipe.fail/jake/y2k:latest
|
||||||
|
@ -7,7 +7,7 @@ if (window.WebSocket) {
|
|||||||
// https://github.com/novnc/noVNC/blob/master/docs/API.md
|
// https://github.com/novnc/noVNC/blob/master/docs/API.md
|
||||||
const rfb = new RFB(
|
const rfb = new RFB(
|
||||||
document.getElementById("display"),
|
document.getElementById("display"),
|
||||||
"wss://socket.y2k.app",
|
"wss://y2k.pipe.fail",
|
||||||
{
|
{
|
||||||
wsProtocols: ["binary", "base64"]
|
wsProtocols: ["binary", "base64"]
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
"@novnc/novnc": "1.3.0"
|
"@novnc/novnc": "1.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/novnc__novnc": "^1.3.0",
|
||||||
"esbuild": "^0.13.14"
|
"esbuild": "^0.13.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
font-family: "Perfect DOS VGA 437";
|
font-family: "Perfect DOS VGA 437";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
src: url("/fonts/perfect-dos.woff2") format("woff2"),
|
src: url("/fonts/perfect-dos.woff2") format("woff2"), url("/fonts/perfect-dos.woff") format("woff");
|
||||||
url("/fonts/perfect-dos.woff") format("woff");
|
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
margin: 60px;
|
margin: 60px;
|
||||||
@ -41,12 +40,8 @@ a {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
p {
|
p { margin: 1em 0 }
|
||||||
margin: 1em 0;
|
p:last-of-type { text-align: center }
|
||||||
}
|
|
||||||
p:last-of-type {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
ul {
|
ul {
|
||||||
position: relative;
|
position: relative;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@ -62,9 +57,7 @@ span.blink {
|
|||||||
animation: blink 1s step-end infinite;
|
animation: blink 1s step-end infinite;
|
||||||
}
|
}
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
50% {
|
50% { opacity: 0 }
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -8,20 +8,20 @@
|
|||||||
-->
|
-->
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Y2K Sandbox — Powered by Windows Me™ 💾</title>
|
<title>Y2K Sandbox — Powered by Windows Me™ 💾</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="description" content="My first website on a Windows Me-powered time machine. You've been warned.">
|
<meta name="description" content="My first website on a Windows Me-powered time machine. You've been warned.">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="cmd"><span id="cmd-text">JavaScript is required for this experience.<br><br>Please enable it and refresh the page!</span> <span class="blink">_</span></div>
|
<div id="cmd"><span id="cmd-text">JavaScript is required for this experience.<br><br>Please enable it and refresh the page!</span> <span class="blink">_</span></div>
|
||||||
<div id="display"><!-- VNC screen --></div>
|
<div id="display"><!-- VNC screen --></div>
|
||||||
<a id="github-corner" href="https://github.com/jakejarvis/y2k" title="View source on GitHub" target="_blank" rel="noopener"><svg width="80" height="80" viewBox="0 0 250 250"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor"></path></svg></a>
|
<a id="github-corner" href="https://github.com/jakejarvis/y2k" title="View source on GitHub" target="_blank" rel="noopener"><svg width="80" height="80" viewBox="0 0 250 250"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor"></path></svg></a>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById("cmd-text").textContent = "Spinning up your very own personal computer, please wait!";
|
document.getElementById("cmd-text").textContent = "Spinning up your very own personal computer, please wait!";
|
||||||
document.body.style.backgroundImage = "url('tiles/tile_" + Math.floor(20 * Math.random()) + ".png')";
|
document.body.style.backgroundImage = "url('tiles/tile_" + Math.floor(20 * Math.random()) + ".png')";
|
||||||
</script>
|
</script>
|
||||||
<script src="app.js"></script>
|
<script src="app.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
hostname: socket.y2k.app
|
hostname: y2k.pipe.fail
|
||||||
url: http://localhost:80
|
url: http://localhost:80
|
||||||
logfile: /var/log/cloudflared.log
|
logfile: /var/log/cloudflared.log
|
||||||
|
tunnel:
|
||||||
|
credentials-file:
|
||||||
|
@ -53,9 +53,9 @@ websocketd --version
|
|||||||
|
|
||||||
#### install cloudflared ####
|
#### install cloudflared ####
|
||||||
## https://developers.cloudflare.com/argo-tunnel/downloads/
|
## https://developers.cloudflare.com/argo-tunnel/downloads/
|
||||||
wget -nv -P /tmp/ https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.deb
|
wget -nv -P /tmp/ https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
|
||||||
dpkg -i /tmp/cloudflared-stable-linux-amd64.deb
|
dpkg -i /tmp/cloudflared-linux-amd64.deb
|
||||||
rm /tmp/cloudflared-stable-linux-amd64.deb
|
rm /tmp/cloudflared-linux-amd64.deb
|
||||||
cloudflared version
|
cloudflared version
|
||||||
|
|
||||||
#### login to cloudflare ####
|
#### login to cloudflare ####
|
||||||
@ -66,15 +66,16 @@ cloudflared service install
|
|||||||
cp ~/.cloudflared/cert.pem /etc/cloudflared/
|
cp ~/.cloudflared/cert.pem /etc/cloudflared/
|
||||||
rm ~/.cloudflared/cert.pem
|
rm ~/.cloudflared/cert.pem
|
||||||
|
|
||||||
|
#### login to registry & pull existing OS container ####
|
||||||
|
docker login git.pipe.fail
|
||||||
|
docker pull git.pipe.fail/jake/y2k:latest
|
||||||
|
|
||||||
#### enable services ####
|
#### enable services ####
|
||||||
cp $REPO_DIR/host/example.service /lib/systemd/system/y2k.service
|
cp $REPO_DIR/host/example.service /lib/systemd/system/y2k.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable y2k
|
systemctl enable y2k
|
||||||
systemctl enable cloudflared
|
systemctl enable cloudflared
|
||||||
|
|
||||||
#### build fresh docker image if ready ####
|
|
||||||
bash $REPO_DIR/build.sh || true
|
|
||||||
|
|
||||||
#### reboot ####
|
#### reboot ####
|
||||||
echo "Rebooting shortly..."
|
echo "Rebooting shortly..."
|
||||||
sleep 15
|
sleep 15
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
REPO_DIR=/root/y2k
|
REPO_DIR=/root/y2k
|
||||||
IMAGE_NAME=y2k:latest
|
IMAGE_NAME=git.pipe.fail/jake/y2k:latest
|
||||||
|
|
||||||
$REPO_DIR/host/websocketd \
|
$REPO_DIR/host/websocketd \
|
||||||
--port=80 \
|
--port=80 \
|
||||||
--binary \
|
--binary \
|
||||||
--header-ws="Sec-WebSocket-Protocol: binary" \
|
--header-ws="Sec-WebSocket-Protocol: binary" \
|
||||||
--origin=y2k.app,www.y2k.app,y2k.pages.dev \
|
--origin=jarv.is,www.jarv.is,y2k.pages.dev \
|
||||||
-- \
|
-- \
|
||||||
docker run \
|
docker run \
|
||||||
--cpus 1 \
|
--cpus 1 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user