Code Monkey home page Code Monkey logo

proxy's People

Contributors

kalagxw avatar lynmoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

proxy's Issues

node genTokens.js应为node genToken.js

Readme中“在 ./vercel 目录下运行 node genTokens.js”应该是node genToken.js,我说我怎么一直报错,仔细看了文件目录才发现说明中多了个s

proxy提示Access denied错误

{"code":-2,"msg":"Access denied","data":{"msg":"parse error"}}

vercel配置:
module.exports = {
password: "zzz",
imgServer: [
'https://jav.xxx.workers.dev/'
],
gdServer: [
'https://jav.xxx.workers.dev/'
]
}

workers配置:(此配置文件是否需要配置,我理解是只需要配置vercel的就可以了,但是因为出问题,所以这里也配置上为了排错)
module.exports = {
client_id: 'xxx.apps.googleusercontent.com',
client_secret: 'X3ca8xfWDb1Voo-F9a7ZxJ',
refresh_token: '1//0c6Ipu5HznkCgYIARAAGAYSNwF-L9IrA6d2NgA1IGtawL4WWzh_5BkcQyHsTJ0JTVJBowOg_oimMqx8sXbFIMg4FWGLd3YANGw',
aesPassword: 'zzz'
}

数据库那边的相关配置片段:
"encryption":{"secret":"zzz","server":"https://jav-xxxx.vercel.app/"

core的配置片段:
"proxy": [
"https://jav-xxxx.vercel.app/"
]

访问vercel会自动302到workers.dev, 我认为vercel应该没问题了, 问题应该出在worker.dev上面部署的代码没工作正常,可是除了vercel now cli 部署的时候提示无法分配别名(域名)之外每天其它的错误。后来进入vercel查看已经分配到域名,并且正常跳转我也就认为他是工作正常的。 谢谢指导~ 折腾一天了, 吃饭先...

genToken错误,now 也错误

root@jav:~/JAVClub_proxy/vercel# node genToken,js
internal/modules/cjs/loader.js:1088
throw err;
^

Error: Cannot find module '/root/JAVClub_proxy/vercel/genToken,js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1085:15)
at Function.Module._load (internal/modules/cjs/loader.js:928:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND

=======now log======================================================


2020-08-09T16:08:19.607Z installing dependencies for user's code...
2020-08-09T16:08:21.209Z npm WARN [email protected] No description
2020-08-09T16:08:21.209Z npm WARN [email protected] No repository field.
2020-08-09T16:08:21.209Z
2020-08-09T16:08:21.210Z added 73 packages from 56 contributors in 1.222s
2020-08-09T16:08:21.263Z running user script...
2020-08-09T16:08:21.264Z preparing lambda files...
2020-08-09T16:08:21.264Z compiling entrypoint with ncc...
2020-08-09T16:08:21.481Z ncc: Version 0.18.5
2020-08-09T16:08:21.481Z ncc: Compiling file index.js
2020-08-09T16:08:23.347Z ncc: Module directory "/vercel/7f959af9/node_modules/node-fetch/lib" attempted to require "encoding" but could not be resolved, assuming external.
2020-08-09T16:08:23.879Z ncc: Module directory "/vercel/7f959af9/node_modules/https-proxy-agent/node_modules/debug/src" attempted to require "supports-color" but could not be resolved, assuming external.
2020-08-09T16:08:23.911Z ncc: Module directory "/vercel/7f959af9/node_modules/agent-base/node_modules/debug/src" attempted to require "supports-color" but could not be resolved, assuming external.
2020-08-09T16:08:24.407Z Error: Module not found: Error: Can't resolve './gdTokens' in '/vercel/7f959af9'
2020-08-09T16:08:24.407Z at evalmachine.:3:1350338
2020-08-09T16:08:24.407Z at eval (eval at create (evalmachine.:1:349386), :11:1)
2020-08-09T16:08:24.407Z at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-08-09T16:08:24.576Z
2020-08-09T16:08:25.263Z
2020-08-09T16:08:26.251Z Done with "app.js"
',
requireStack: []
}

想請教一下關於proxy的配置細節

将 ./workers/dist/main.js 的内容部署至 Workers 即可

但執行node main.js的時候卻跑出以下東西:

TypeError: Cannot read property 'aesPassword' of null

也許是我眼殘,又或是我真的跟Node不熟 QQ
可以請教以下作者標準步驟為何嗎?

P.S:
如果採用原方案在vercel上面架proxy,是要整個repo deploy上去嗎?
我也稍微嘗試了以下,得不出所以然 (我就菜QQ)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.