-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ad98992
Showing
36 changed files
with
9,378 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.DS_Store | ||
node_modules | ||
/.svelte-kit | ||
.env | ||
.env.* | ||
!.env.example | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* | ||
.eslintrc* | ||
*.log | ||
.env | ||
.env.local | ||
node_modules | ||
.history | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
engine-strict=true | ||
resolution-mode=highest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"pluginSearchDirs": ["."], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Abyss Web | ||
|
||
## Abyss is the best and most modern proxy to avoid modern censorship. | ||
### discord.gg/goabyss | ||
|
||
## Setup | ||
``` | ||
git clone https://github.com/Abyss-Services/Abyss-Web | ||
cd Abyss-Web | ||
npm install | ||
npm start | ||
``` | ||
|
||
## Enviroment | ||
Edit .env to change the port. The default port is 8080. | ||
|
||
## License | ||
Abyss uses GPL-3.0. Read it before you use Abyss and manipulate it's code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { createBareServer } from '@tomphttp/bare-server-node'; | ||
import http from 'http'; | ||
import { dirname, join } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import nodeStatic from 'node-static'; | ||
import chalk from 'chalk'; | ||
import 'dotenv/config'; | ||
|
||
|
||
const port = process.env.PORT || 8080; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
|
||
const bare = createBareServer('/bare/'); | ||
const serve = new nodeStatic.Server('build/'); | ||
|
||
const server = http.createServer(); | ||
|
||
server.on('request', (req, res) => { | ||
if (bare.shouldRoute(req)) { | ||
bare.routeRequest(req, res); | ||
} else { | ||
serve.serve(req, res); | ||
} | ||
}); | ||
|
||
server.on('upgrade', (req, socket, head) => { | ||
if (bare.shouldRoute(req, socket, head)) { | ||
bare.routeUpgrade(req, socket, head); | ||
} else { | ||
socket.end(); | ||
} | ||
}); | ||
|
||
server.listen({ | ||
port: port, | ||
}, () => { | ||
console.log(chalk.green(`Welcome to ${chalk.green.bold('Abyss Version 5. ')}If you encounter an error, report it to our staff.`)) | ||
console.log(chalk.green.bold("[ABYSS] ") + "live at port " + chalk.bold.green(port)); | ||
}); |
Oops, something went wrong.