]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/helpers/proxy.ts
Better 413 error handling in cli script
[github/Chocobozzz/PeerTube.git] / server / helpers / proxy.ts
CommitLineData
8729a870 1function getProxy () {
2 return process.env.HTTPS_PROXY ||
3 process.env.HTTP_PROXY ||
4 undefined
5}
6
7function isProxyEnabled () {
8 return !!getProxy()
9}
10
11export {
12 getProxy,
13 isProxyEnabled
14}