sub #215
+2
-2
@@ -10,6 +10,6 @@ RUN bun install --frozen-lockfile --production
|
|||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
ENTRYPOINT ["bun", "run", "start"]
|
ENTRYPOINT ["bun", "run", "server"]
|
||||||
|
|
||||||
EXPOSE 1234 1235
|
EXPOSE 1234
|
||||||
@@ -15,7 +15,9 @@ async function main({ url }: { url: string }) {
|
|||||||
headers: data.headers,
|
headers: data.headers,
|
||||||
})
|
})
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then(socket.send);
|
.then((res) => {
|
||||||
|
socket.send(res);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
# fly.toml app configuration file generated for tunnel on 2024-03-18T21:37:28-04:00
|
# fly.toml app configuration file generated for tunnel on 2024-03-18T21:37:28-04:00
|
||||||
#
|
|
||||||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
||||||
#
|
|
||||||
|
|
||||||
app = 'tunnel'
|
app = 'tunnel'
|
||||||
primary_region = 'yul'
|
primary_region = 'yul'
|
||||||
@@ -20,11 +18,3 @@ primary_region = 'yul'
|
|||||||
memory = '1gb'
|
memory = '1gb'
|
||||||
cpu_kind = 'shared'
|
cpu_kind = 'shared'
|
||||||
cpus = 1
|
cpus = 1
|
||||||
|
|
||||||
# [[services]]
|
|
||||||
# internal_port = 1235
|
|
||||||
# protocol = "tcp"
|
|
||||||
|
|
||||||
[[services.ports]]
|
|
||||||
handlers = ["tls", "http"]
|
|
||||||
port = 443
|
|
||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"server": "bun run server.ts",
|
"server": "bun run server.ts",
|
||||||
"lt": "bun run client/index.ts",
|
"lt": "bun run client.ts",
|
||||||
"demo": "bun run demo.ts"
|
"demo": "bun run demo.ts"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user