mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -04:00
AES encryption for dynamic
This commit is contained in:
parent
ccb9f7e6e9
commit
89229d95e5
4 changed files with 14 additions and 9 deletions
|
@ -13,7 +13,7 @@
|
|||
"dependencies": {
|
||||
"@fastify/compress": "^6.5.0",
|
||||
"@fastify/static": "^6.12.0",
|
||||
"@nebula-services/dynamic": "0.7.2-patch.1",
|
||||
"@nebula-services/dynamic": "0.7.2-patch.2",
|
||||
"@nebula-services/ultraviolet": "1.0.1-1.patch.5",
|
||||
"@tomphttp/bare-server-node": "^2.0.1",
|
||||
"classnames": "^2.3.2",
|
||||
|
|
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
|
@ -12,8 +12,8 @@ dependencies:
|
|||
specifier: ^6.12.0
|
||||
version: 6.12.0
|
||||
'@nebula-services/dynamic':
|
||||
specifier: 0.7.2-patch.1
|
||||
version: 0.7.2-patch.1
|
||||
specifier: 0.7.2-patch.2
|
||||
version: 0.7.2-patch.2
|
||||
'@nebula-services/ultraviolet':
|
||||
specifier: 1.0.1-1.patch.5
|
||||
version: 1.0.1-1.patch.5
|
||||
|
@ -989,8 +989,8 @@ packages:
|
|||
resolution: {integrity: sha512-n3/+wko8WFd/fbiPCOuBB6HfKL6hTcygFEZ/MpmvpMRbgDSdlNMopDFGjsoTYqCbzTVTX9TL/StXco4yx2v58Q==}
|
||||
dev: true
|
||||
|
||||
/@nebula-services/dynamic@0.7.2-patch.1:
|
||||
resolution: {integrity: sha512-hN40+RQ1LoxOJos2x891y9/0fumbTTrsbVY/84028tar/c2WSv4YueyD9ZGDLQjsiGiO0vdlByB04ExSxmzJvg==}
|
||||
/@nebula-services/dynamic@0.7.2-patch.2:
|
||||
resolution: {integrity: sha512-0g1ygwVNS0dmT38NIeZYc2Z5HiZKHT3tP7ZagIeWC/VlcZjINIPR4ThNndWVaGiZey2Y2JS2807ABb41OSYTrw==}
|
||||
dependencies:
|
||||
'@dynamic-pkg/mime': 1.0.1
|
||||
'@dynamic-pkg/mutation': 1.0.0
|
||||
|
@ -1002,6 +1002,7 @@ packages:
|
|||
astring: 1.8.6
|
||||
chalk: 5.3.0
|
||||
cookie: 0.5.0
|
||||
crypto-js: 4.2.0
|
||||
domhandler: 5.0.3
|
||||
esbuild: 0.19.10
|
||||
fastify: 4.25.1
|
||||
|
@ -5769,7 +5770,7 @@ packages:
|
|||
engines: {node: '>=10'}
|
||||
|
||||
'@github.com/holy-unblocker/rammerhead/releases/download/v1.2.41-holy.5/rammerhead-1.2.41-holy.5.tgz':
|
||||
resolution: {registry: https://registry.npmjs.org/, tarball: https://github.com/holy-unblocker/rammerhead/releases/download/v1.2.41-holy.5/rammerhead-1.2.41-holy.5.tgz}
|
||||
resolution: {tarball: https://github.com/holy-unblocker/rammerhead/releases/download/v1.2.41-holy.5/rammerhead-1.2.41-holy.5.tgz}
|
||||
name: rammerhead
|
||||
version: 1.2.41-holy.5
|
||||
dependencies:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
self.__dynamic$config = {
|
||||
prefix: '/~/dynamic/',
|
||||
encoding: 'plain',
|
||||
encoding: 'aes',
|
||||
mode: 'production',
|
||||
logLevel: 0,
|
||||
bare: {
|
||||
|
|
|
@ -47,7 +47,9 @@ export function ProxyFrame(props: { url: string }) {
|
|||
window.__uv$config.encodeUrl(decodedUrl);
|
||||
} else if (localProxy === "dynamic") {
|
||||
result =
|
||||
window.__dynamic$config.prefix + encodeURIComponent(decodedUrl);
|
||||
window.__dynamic$config.prefix +
|
||||
"route?url=" +
|
||||
encodeURIComponent(decodedUrl);
|
||||
} else {
|
||||
// automatic. use SiteSupport.json to determine proxy support
|
||||
const matchingKey = Object.keys(SiteSupport).find((key) =>
|
||||
|
@ -60,7 +62,9 @@ export function ProxyFrame(props: { url: string }) {
|
|||
window.__uv$config.encodeUrl(decodedUrl);
|
||||
} else if (SiteSupport[matchingKey] === "dynamic") {
|
||||
result =
|
||||
window.__dynamic$config.prefix + encodeURIComponent(decodedUrl);
|
||||
window.__dynamic$config.prefix +
|
||||
"route?url=" +
|
||||
encodeURIComponent(decodedUrl);
|
||||
} else if (SiteSupport[matchingKey] === "rammerhead") {
|
||||
result = await RammerheadEncode(decodedUrl);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue