mirror of
https://github.com/standardnotes/server
synced 2026-09-21 06:13:09 -04:00
refactor: proxy param
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import * as http from 'http'
|
||||
import * as httpProxy from 'http-proxy'
|
||||
|
||||
const proxy = httpProxy.createProxyServer({})
|
||||
const proxy = httpProxy.createProxyServer({
|
||||
secure: true,
|
||||
})
|
||||
|
||||
proxy.on('error', (error, req, res) => {
|
||||
console.error(error.message)
|
||||
|
||||
Reference in New Issue
Block a user