Skip to content

Commit

Permalink
fixed tls1.0 not supported issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed Feb 29, 2020
1 parent ba51290 commit f58b2db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 0 additions & 1 deletion Proxy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var express = require('express');
var proxy = require('http-proxy-middleware');
const https = require('https')
const zlib = require("zlib")
const cookiejar = require('cookiejar')
const iconv = require('iconv-lite')
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var express = require('express')
const https = require('https')
const zlib = require("zlib")
const fs = require("fs")
const cookiejar = require('cookiejar')
Expand Down
17 changes: 10 additions & 7 deletions now.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"version": 2,
"builds": [{ "src": "index.js", "use": "@now/node-server"}],
"env": {
"NODE_OPTIONS": "--tls-min-v1.0"
},
"routes": [{
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
},
"src": "/(.*)",
"dest": "/index.js"
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
},
"src": "/(.*)",
"dest": "/index.js"
}]
}

0 comments on commit f58b2db

Please sign in to comment.