|
|
@ -1,9 +1,7 @@ |
|
|
|
var fs = require('fs-extra') |
|
|
|
|
|
|
|
var domain = domain |
|
|
|
var port = port |
|
|
|
|
|
|
|
fs.outputFileSync("/test.txt", |
|
|
|
function createProxyServer(domain, port) { |
|
|
|
fs.outputFileSync("/test.txt", |
|
|
|
"server {" + "\n" + |
|
|
|
" listen 80;" + "\n" + |
|
|
|
" listen [::]:80;" + "\n" + |
|
|
@ -20,4 +18,6 @@ fs.outputFileSync("/test.txt", |
|
|
|
" proxy_cache_bypass $http_upgrade;" + "\n" + |
|
|
|
"}" |
|
|
|
) |
|
|
|
console.log('Done') |
|
|
|
} |
|
|
|
|
|
|
|
module.exports = createProxyServer |