feat: init
This commit is contained in:
5
apps/proxy/.whistle/.gitignore
vendored
Normal file
5
apps/proxy/.whistle/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
**/.backup
|
||||
**/.recycle_bin
|
||||
**/.clientid
|
||||
/properties/*
|
||||
!/properties/properties
|
||||
1
apps/proxy/.whistle/properties/properties
Normal file
1
apps/proxy/.whistle/properties/properties
Normal file
@@ -0,0 +1 @@
|
||||
{"filesOrder":["latestVersion"],"Custom1":"Custom1","Custom2":"Custom2"}
|
||||
10
apps/proxy/.whistle/rules/files/0.konoplayer
Normal file
10
apps/proxy/.whistle/rules/files/0.konoplayer
Normal file
@@ -0,0 +1,10 @@
|
||||
```x-forwarded.json
|
||||
{
|
||||
"X-Forwarded-Host": "konoplayer.com",
|
||||
"X-Forwarded-Proto": "https"
|
||||
}
|
||||
```
|
||||
|
||||
^https://konoplayer.com/api*** reqHeaders://{x-forwarded.json} http://127.0.0.1:5001/api$1
|
||||
^https://konoplayer.com/*** reqHeaders://{x-forwarded.json} http://127.0.0.1:5000/$1 excludeFilter://^https://konoplayer.com/api
|
||||
^wss://konoplayer.com/*** reqHeaders://{x-forwarded.json} ws://127.0.0.1:5000/$1 excludeFilter://^wss://konoplayer.com/api
|
||||
1
apps/proxy/.whistle/rules/properties
Normal file
1
apps/proxy/.whistle/rules/properties
Normal file
@@ -0,0 +1 @@
|
||||
{"filesOrder":["konoplayer"],"selectedList":["konoplayer"],"disabledDefalutRules":true}
|
||||
0
apps/proxy/.whistle/values/properties
Normal file
0
apps/proxy/.whistle/values/properties
Normal file
15
apps/proxy/package.json
Normal file
15
apps/proxy/package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "proxy",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "cross-env WHISTLE_MODE=\"prod|capture|keepXFF|x-forwarded-host|x-forwarded-proto\" whistle run -p 8899 -t 30000 -D .",
|
||||
"dev": "pnpm run start"
|
||||
},
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"cross-env": "^7.0.3",
|
||||
"whistle": "^2.9.93"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user