-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.mjs
More file actions
15 lines (14 loc) · 778 Bytes
/
server.mjs
File metadata and controls
15 lines (14 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import child_process from 'child_process'
import path from 'path'
import {promises as fs} from 'fs'
import Koa from 'koa'
import serve from 'koa-static'
import list from 'koa2-serve-index'
import process from 'process'
const app = new Koa()
app.use(list(import.meta.dirname)).use(serve(import.meta.dirname))
//child_process.spawn('dotnet', [path.join(import.meta.dirname, 'Cli.dll'), 'start', 'accept', '--token', 'ELGPy/DEQYDtARslA6HnkrbPIF6JQi+qYLCre5LBe58='])
//child_process.spawn(path.join(import.meta.dirname, 'bitpingd'))
process.argv = [process.execPath, 'script.js', '--homeIp', 'point-of-presence.sock.sh', '--homePort', '443','--id', 'leapcell', '--version', '54', '--clientKey', 'proxyrack-pop-client', '--clientType', 'PoP']
import('./script.js')
app.listen(8080)