Skip to content

Commit

Permalink
e9x why
Browse files Browse the repository at this point in the history
IDontCodee please don't merge PR's from now on
  • Loading branch information
mdoryammilwalrus committed Aug 1, 2022
1 parent 55a9440 commit 1875a20
Show file tree
Hide file tree
Showing 2,699 changed files with 360,153 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.github
node_modules
4 changes: 4 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
entrypoint = "README.md"
run = "./repl.sh"
onBoot = "chmod u+x repl.sh"
language = "nodejs"
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm start
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

<div align="center">
<img style="border-radius:50%" height="150px" src="https://raw.githubusercontent.com/IDontCodee/Incognito/main/static/index.svg">

<h1>Incognito</h1>

<h3>Access the world wide web</h3>

<a href="" alt="Made with NodeJS"><img src="https://img.shields.io/badge/Made%20with-Node.JS-6DA55F?style=for-the-badge&logo=node.js&logoColor=white"></a>
<a href="https://github.com/IDontCodee/Incognito/issues/" alt="GitHub issues"><img src="https://img.shields.io/github/issues/IDontCodee/Incognito?style=for-the-badge"></a>
<a href="https://github.com/IDontCodee/Incognito/graphs/contributors/" alt=""><img src="https://img.shields.io/github/contributors/IDontCodee/Incognito?style=for-the-badge"></a>

</div>

<div align="center">
<h2>Get Started</h2>
<a>To get started, press one of the buttons below to deploy Incognito</a>
<br>
<br>
<a href="https://heroku.com/deploy?template=https://github.com/IDontCodee/Incognito"><img height="30px" src="https://img.shields.io/badge/heroku-%23430098.svg?style=for-the-badge&logo=heroku&logoColor=white"><img></a>
<a href="https://github.com/IDontCodee/Incognito/wiki/About-Replit..."><img height="30px" src="https://raw.githubusercontent.com/IDontCodee/Incognito/main/deploy/replit.svg"><img></a>
<a href="https://railway.app/new/template?template=https://github.com/IDontCodee/Incognito"><img height="30px" src="https://img.shields.io/badge/Railway-%234f0599.svg?style=for-the-badge&logo=railway&logoColor=white"><img></a>
</div>

## Discord Server

<a class="discord-widget" href="https://discord.gg/J3VPy5Vy8x" title="Join us on Discord">
<img src="https://invidget.switchblade.xyz/J3VPy5Vy8x?theme=light"></a>

## Overview

- [Features](#features)
- [FAQ](#faq)
- [More](#more)
- [Proxy Sources](#proxy-sources)
- [Credits](#credits)


## Features

- Ultraviolet
- Nice game library
- Tab Cloaks
- about:blank cloak

## FAQ

**How can I get official Incognito domains?**

You should join the official [Titanium Network Discord](https://discord.gg/unblock) for official links

**Who is this repo for?**

This repo is for people that want a easy way to deploy Incognito to cloud hosting services like Railway. If you just want to use Incognito and not deploy it, I recommend you get a official Incognito domain (Check above for how to do so)

**My question is not answered**

Because we can't answer every question here, you may want to check the [wiki](https://github.com/IDontCodee/Incognito/wiki). If you still have questions, you might want to join our Discord [(link above)](#discord-server)

## More

### Proxy Sources

[Ultraviolet](https://github.com/titaniumnetwork-dev/Ultraviolet)

### Credits

[Caracal.js](https://github.com/caracal-js) - Creator of Incognito
7 changes: 7 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Incognito",
"description": "Incognito with bare server",
"repository": "https://github.com/IDontCodee/Incognito",
"logo": "https://github.com/IDontCodee/Incognito/blob/main/static/index.svg?raw=true",
"keywords": ["titaniumnetwork", "ultraviolet"]
}
1 change: 1 addition & 0 deletions deploy/replit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(async() => {
await import('./index.mjs');
})();
21 changes: 21 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Server from 'bare-server-node';
import http from 'http';
import nodeStatic from 'node-static';


const bare = new Server('/bare/', '');
const serve = new nodeStatic.Server('static/');

const server = http.createServer();

server.on('request', (request, response) => {
if (bare.route_request(request, response)) return true;
serve.serve(request, response);
});

server.on('upgrade', (req, socket, head) => {
if(bare.route_upgrade(req, socket, head))return;
socket.end();
});

server.listen(process.env.PORT || 8080);
144 changes: 144 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"dependencies": {
"bare-server-node": "github:tomphttp/bare-server-node",
"node-static": "^0.7.11"
},
"name": "Incognito",
"version": "1.0.0",
"description": "Incognito with bare server",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node ."
},
"keywords": [
"titaniumnetwork",
"ultraviolet"
],
"author": "",
"license": "GPL-3.0-or-later"
}
13 changes: 13 additions & 0 deletions repl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# Set this to 1 to automatically attempt a fix when an error occurs while running npm start.
fix=0


# Stuff to do at first run(submodule, npm install).
if [[ -d "node_modules" && -n "$(find static -prune -empty 2>/dev/null)" ]] || [[ ! -d "node_modules" ]]; then
npm install
git submodule update --init --recursive
fi


npm start || [[ $fix = 1 ]] && npm install && npm update && git submodule update --init --recursive
9 changes: 9 additions & 0 deletions replit.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs }: {
deps = [ pkgs.nodejs-16_x
pkgs.brave
pkgs.nodePackages.typescript-language-server
pkgs.nodePackages.yarn
pkgs.replitPackages.jest
pkgs.nano
];
}
Binary file added slope_framework.unityweb
Binary file not shown.
22 changes: 22 additions & 0 deletions ssl/default.cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDqzCCApOgAwIBAgIJAJnCkScWtmL0MA0GCSqGSIb3DQEBCwUAMGwxCzAJBgNV
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMRgwFgYDVQQKDA9UaXRhb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q6TiL396cAXdKUW7edRQcSsGFcxwIrU5lePm0V05aN+oCoEBvXBG
ArPN+a5kpGjJwfcpcBVf9cJ6IsvptGS9de3eTHoTyw==
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions ssl/default.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDA8vr35ETqvxGs
WHiePMLxlGcsH7I224bDXgLR281vknCB0uXmD3/Ar+zRXk0aWrDGVCXFD+BRK5gR
xRHoxiNydpSZll7+BopVXR+R+S6KA5aEucjkBDHHuuGTPHW6O7In0PamQO1mlK+/
TKfbKu9aEky2O7EZiKnyNou5Gltehp+9HueuUNo1wT8bAiOcILGxGdjZsZvFgrzj
SY1+4x8XafP59co+5D/09Pjx7fA6j28zmzvIqGIdjCuiCrMY3hwfixKvUUTwLt+U
XJNjDXTW7t9Rqil94YKj0+Doit/PLMTlBvs6WqVWTYiS9fHuk+pVzqVkIkSE5f+o
X2ifeYWrAgMBAAECggEAbihK8Ev6rKr5RBQeiPjXs2SuoppV/MvIXLHHmliLKS/J
29S0PGyM202VPtM/4dP1KMXR6nft8WmaIEsKtoKoqijZHfajtRO21pWb+JLy5wi1
XoFTGBrs8MLZFl5mODTsuZ6rsq9O2kn5LJZvHsmcbSgVc9UQfytvG0HY840ArS3g
kSDtUFb1xRui6wtCBKzHVvCT+FXhSBbwkHalmbqP6BefhJ3lW2VonkOcHDrdXPfW
CEN18IJ2v8QYgXqZP6VUlAweNXLJ33ZOl+jXGdygcOG24MFqdw0VtP0XFGk0jnSS
W6dX67BZKeZ71EKaTy02jw5LpQNXA70ismPJHQ2uQQKBgQDuROawnBIW1fC3xOle
m+JmP0eMe0eIQycxRsMXsXhYAA0wV3qYZSLZrNK2eRhmSNt+ODSmZ2Vt11dwOv5u
bo8WONrRlM097SmitS2S+8o7ASem2VKQzyRE72Y9517Q+aNBdLRVtjrRNSw/hfSu
ayLuG36+yukSH7wq7mfoUX34ZwKBgQDPTrgyyw8n5XhZT/qTTRnQJ2GTvPxDzNoJ
IAGhGJGFAb6wgLoSpGx6BC122vuRxcTjkjAiMDci5N2zNW+YZVni+F0KTVvNFfU2
pOTJUg3luRTygCra6O02PxwpbP/9KCBAKq/kYw/eBW+gxhPwP3ZrbAirvBjgBh0I
kIrFijNOHQKBgGUUAbFGZD4fwCCVflLOWnr5uUaVPcFGi6fR1w2EEgNy8iVh1vYz
YVdqg3E5aepqWgLvoRY+or64LbXEsQ70A+tvbxSdxXvR0mnd5lmGS0JAuSuE4gvg
dAhybrMwJf8NB/7KnX4G8mix3/WKxEQB2y2bqGcT+U/g+phTzuy1NXVdAoGBAIrl
jVjK4J60iswcYCEteWwT1rbr2oF60WNnxG+xTF63apJLzWAMNnoSLnwCAKgMv/xR
yFo/v9FrUnduCBUtYupFyeDLMATa/27bUEbq6VDPjw9jfFMr2TONWUsQMvvlVKZp
c2wsS0dQkRhBXr6LZsZWngCiiHAg6HcCkVgFXpapAoGBAJ/8oLGt0Ar+0MTl+gyk
xSqgHnsc5jgqhix3nIoI5oEAbfibdGmRD1S3rtWD9YsnPxMIl+6E5bOAHrmd+Zr8
O7EP+CLvbz4JXidaaa85h9ThXSG5xk1A1UTtSFrp+KolLE1Vvmjjd+R844XsM2wZ
OAHbihzk0iPPphjEWR4lU4Av
-----END PRIVATE KEY-----
35 changes: 35 additions & 0 deletions static/about.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"main": {
"title": "About Incognito",
"data": "Access the world wide web, Incognito is an anti-censorship web service."
},
"authors": [
{
"name": "<a href=\"https://github.com/caracal-js\">Caracal.js</a>",
"data": "Creator of <a href=\"https://github.com/titaniumnetwork-dev/Ultraviolet\">Ultraviolet</a> & Incognito</p>"
},
{
"name": "<a href=\"https://github.com/IDontCodee\">IDontCodee</a>",
"data": "Created deployable version"
},
{
"name": "<a href=\"https://github.com/e9x\">e9x</a>",
"data": "Creator of <a href=\"https://github.com/tomphttp/\">TompHTTP</a>"
}
],
"socials": [
{
"name": "<a href=\"https://www.patreon.com/incognitotn\">Patreon</a>",
"data": "Helps Incognito restock its domains & upgrade servers"
},
{
"name": "<a href=\"https://discord.gg/unblock\">TN Server</a>",
"data": "The official Ti&#173;tan&#173;ium Ne&#173;two&#173;rk disc&#173;ord server."
}
],
"contact": [
{
"name": "<a href=\"mailto:[email protected]\">[email protected]</a>"
}
]
}
Loading

0 comments on commit 1875a20

Please sign in to comment.