Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docker/docker-compose-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3"
services:
ruby:
image: ruby:latest
build: .
container_name: ruby
restart: unless-stopped
ports:
# DO NOT CHANGE 8080!
- your port here:8080
#ADVANCED ITEMS BELOW
# - ${PORT}:8080
#env_file:
# - .env.docker
#environment:
# - URL=${URL}
#networks:
# default:
# external:
# name: default_net
11 changes: 9 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ dotenv.config();
//getting environment vars
const numCPUs = process.env.CPUS || os.cpus().length;
let key = process.env.KEY || 'unlock';
let url = process.env.URL || 'rubynetwork.tech';
let uri = process.env.URL || 'rubynetwork.tech';
if (uri.includes('http')) {
uri = uri.replace('http://', '');
}
if (uri.includes('https')) {
uri = uri.replace('https://', '')
}
let user = process.env.USERNAME || 'ruby';
let pass = process.env.PASSWORD || 'ruby';
let disableKEY = process.env.KEYDISABLE || 'false';
let educationWebsite = fs.readFileSync(join(__dirname, 'education/index.html'));
let loadingPage = fs.readFileSync(join(__dirname, 'education/load.html'));
const blacklisted: string[] = [];
console.log(uri)
const disableyt: string[] = [];
fs.readFile(join(__dirname, 'blocklists/ADS.txt'), (err, data) => {
if (err) {
Expand Down Expand Up @@ -83,7 +90,7 @@ if (numCPUs > 0 && cluster.isPrimary) {
return;
}
//@ts-ignore
} else if (req.headers.host === url) {
} else if (req.headers.host === uri) {
app(req, res);
} else if (
url.search === `?${key}` &&
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
"@astrojs/node": "^5.1.0",
"@astrojs/partytown": "^1.1.1",
"@astrojs/prefetch": "^0.2.1",
"@astrojs/react": "^2.1.0",
"@astrojs/react": "^2.1.1",
"@astrojs/tailwind": "^3.1.1",
"@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-brands-svg-icons": "^6.2.1",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@titaniumnetwork-dev/ultraviolet": "^1.0.8",
"@titaniumnetwork-dev/ultraviolet": "^1.0.11",
"@tomphttp/bare-server-node": "^1.2.5",
"astro": "^2.1.7",
"astro-robots-txt": "^0.4.0",
"astro": "^2.1.9",
"astro-robots-txt": "^0.4.1",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"framer-motion": "^10.9.1",
Expand All @@ -50,7 +50,7 @@
"@types/express": "^4.17.13",
"@types/http-auth": "^4.1.1",
"@types/node": "^18.15.10",
"@types/react": "^18.0.29",
"@types/react": "^18.0.32",
"@types/react-dom": "^18.0.6"
}
}
43 changes: 23 additions & 20 deletions src/pages/games/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,30 @@ import '../../styles/globals.css';
placeholder="Search For A Game..."
class="search-input"
/>
</div>
<select class="search-select" onchange="category_games(this.value)">
<option value="">All</option>
<option value="arcade">Arcade</option>
<option value="platformer">Platformer</option>
<option value="static">Static</option>
<option value="racing">Racing</option>
<option value="flash">Flash</option>
<option value="adventure">Adventure</option>
<option value="multiplayer">Multiplayer</option>
<option value="retro">Retro</option>
<option value="emulation">Emulation</option>
<option value="sports">Sports</option>
<option value="strategy">Strategy</option>
<option value="shooter">Shooter</option>
<option value="proxied">Proxied</option>
</select>
<select class="search-select" onchange="category_games(this.value)">
<option value="">All</option>
<option value="arcade">Arcade</option>
<option value="platformer">Platformer</option>
<option value="static">Static</option>
<option value="racing">Racing</option>
<option value="flash">Flash</option>
<option value="adventure">Adventure</option>
<option value="multiplayer">Multiplayer</option>
<option value="retro">Retro</option>
<option value="emulation">Emulation</option>
<option value="sports">Sports</option>
<option value="strategy">Strategy</option>
<option value="shooter">Shooter</option>
<option value="proxied">Proxied</option>
</select>
</div>
<div class="games" id="games"></div>
<script src="/js/games.js" type="module" is:inline></script>
<script src="/js/searchGames.js" is:inline></script>
<div class="games" id="games"></div>
<script src="/js/games.js" type="module" is:inline></script>
<script src="/js/searchGames.js" is:inline></script>
</body>
<div class="games" id="games"></div>
<script src="/js/games.js" type="module" is:inline></script>
<script src="/js/searchGames.js" is:inline></script>

<style is:global>
.get-started-div {
Expand Down
60 changes: 30 additions & 30 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
dependencies:
prismjs "^1.28.0"

"@astrojs/react@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@astrojs/react/-/react-2.1.0.tgz#6b913baefa0d2a717bf5ff3d96ab299c7b0e4708"
integrity sha512-AzopsCVjsHlX1oVkgLusDRngnpJfoi03kj6c8p/K6+i/PQ3ZnVwRmJl7IgFBC2YJSbexyNxK2BmLvwkjGvQaCA==
"@astrojs/react@^2.1.1":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@astrojs/react/-/react-2.1.1.tgz#33337d7dde99229a35ffea8cdac819975ca93d93"
integrity sha512-nIcDFnn5H4FKGoSBYXZr95RIQvpcTNRcVV1hvUQifO0F5hQsgb0PVyk6TG4JWxiPGY4Jt4MVQb5JaaDQHlHu4w==
dependencies:
"@babel/core" ">=7.0.0-0 <8.0.0"
"@babel/plugin-transform-react-jsx" "^7.17.12"
Expand Down Expand Up @@ -640,10 +640,10 @@
dependencies:
tsm "^2.1.4"

"@titaniumnetwork-dev/ultraviolet@^1.0.8":
version "1.0.10"
resolved "https://registry.yarnpkg.com/@titaniumnetwork-dev/ultraviolet/-/ultraviolet-1.0.10.tgz#515474b2be346574575fe155ad0f7ff82608b852"
integrity sha512-y5Hv92jQUvwmcEMIeFuImuD5CmI7b0MQGL7qkFcEZxETxlwy+jveLaHpF1UWgtGJS50GSnj9GCJWZWp/W6IwEQ==
"@titaniumnetwork-dev/ultraviolet@^1.0.11":
version "1.0.11"
resolved "https://registry.yarnpkg.com/@titaniumnetwork-dev/ultraviolet/-/ultraviolet-1.0.11.tgz#3d80c6af376107f5da2a4742401006b12552bd97"
integrity sha512-FJtZw/xQubrgk8pJLs5wx9k6okCGZPR7FXWXTiL5wOiCvjqgDQCmHBTb7M5eYqnQil05tbaz92+16Ki/7rRWIw==
dependencies:
"@tomphttp/bare-client" "^1.1.2-beta.3"
css-tree "^2.0.4"
Expand Down Expand Up @@ -852,10 +852,10 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^18.0.29":
version "18.0.29"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.29.tgz#4cead505172c0020c5b51940199e31fc6ff2f63a"
integrity sha512-wXHktgUABxplw1+UnljseDq4+uztQyp2tlWZRIxHlpchsCFqiYkvaDS8JR7eKOQm8wziTH/el5qL7D6gYNkYcw==
"@types/react@*", "@types/react@^18.0.32":
version "18.0.32"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.32.tgz#5e88b2af6833251d54ec7fe86d393224499f41d5"
integrity sha512-gYGXdtPQ9Cj0w2Fwqg5/ak6BcK3Z15YgjSqtyDizWUfx7mQ8drs0NBUzRRsAdoFVTO8kJ8L2TL8Skm7OFPnLUw==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down Expand Up @@ -1025,21 +1025,21 @@ array-iterate@^2.0.0:
resolved "https://registry.yarnpkg.com/array-iterate/-/array-iterate-2.0.1.tgz#6efd43f8295b3fee06251d3d62ead4bd9805dd24"
integrity sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==

astro-robots-txt@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/astro-robots-txt/-/astro-robots-txt-0.4.0.tgz#144aa8f466c5d60da4bbbae4e89fa2c8f488a46b"
integrity sha512-tzZUnSXNC5gtSaLvF/LGC0A6cxt7lW5J0tuuQfM84/Vj2/dIdsvxHUp1JI1APhdpwP6TvH05aJnJFnGHn/pZlQ==
astro-robots-txt@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/astro-robots-txt/-/astro-robots-txt-0.4.1.tgz#07fba6a49501dc0cb776036c929a56cf24c72eca"
integrity sha512-YujWFocCHcOA+sDlaiqVsUH7eeHDOn9WrtsyT7KPW3JOHn1dZB1KwoshsPGTJiZ0PeeAqPcHOz+M9xjzc/tjsQ==
dependencies:
"@proload/core" "^0.3.3"
"@proload/plugin-tsm" "^0.2.1"
deepmerge "^4.3.0"
deepmerge "^4.3.1"
valid-filename "^4.0.0"
zod "^3.20.6"
zod "^3.21.4"

astro@^2.1.7:
version "2.1.7"
resolved "https://registry.yarnpkg.com/astro/-/astro-2.1.7.tgz#d28f1b3529595c75bdc73c58b1a5f89aeb8f70fa"
integrity sha512-Eaq8/mJTx+kbghfW5ZEJ8rKiEduo03Rn6R/fp/gJGpBSRm/0FiVxVsrpq5SV4kUPrttEi1zMEnEc2GP6JWfXeg==
astro@^2.1.9:
version "2.1.9"
resolved "https://registry.yarnpkg.com/astro/-/astro-2.1.9.tgz#d47fcfc5c83b2f91a63fee4705fb90421069b2be"
integrity sha512-UkbG0lgue1b/t4yMI+AkAGEfdOwcPS2RUYQ/QIurtKjP6W5gtKQveRTBuHH7iwiBziH+z8Ecc5/OAALoXSvMlQ==
dependencies:
"@astrojs/compiler" "^1.3.0"
"@astrojs/language-server" "^0.28.3"
Expand Down Expand Up @@ -1473,10 +1473,10 @@ deepmerge-ts@^4.2.2:
resolved "https://registry.yarnpkg.com/deepmerge-ts/-/deepmerge-ts-4.3.0.tgz#432aff3cd09f947e36cdb3772a43960bf45327fe"
integrity sha512-if3ZYdkD2dClhnXR5reKtG98cwyaRT1NeugQoAPTTfsOpV9kqyeiBF9Qa5RHjemb3KzD5ulqygv6ED3t5j9eJw==

deepmerge@^4.2.2, deepmerge@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.0.tgz#65491893ec47756d44719ae520e0e2609233b59b"
integrity sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==
deepmerge@^4.2.2, deepmerge@^4.3.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==

defaults@^1.0.3:
version "1.0.4"
Expand Down Expand Up @@ -4381,10 +4381,10 @@ yocto-queue@^0.1.0:
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==

zod@^3.17.3, zod@^3.20.6:
version "3.21.1"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.1.tgz#ac5bb7cf68876281ebd02f95ac4bb9a080370282"
integrity sha512-+dTu2m6gmCbO9Ahm4ZBDapx2O6ZY9QSPXst2WXjcznPMwf2YNpn3RevLx4KkZp1OPW/ouFcoBtBzFz/LeY69oA==
zod@^3.17.3, zod@^3.21.4:
version "3.21.4"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db"
integrity sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==

zwitch@^2.0.0, zwitch@^2.0.4:
version "2.0.4"
Expand Down