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>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<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">
|
||||||
|
@ -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