Prepare for deploy

This commit is contained in:
tedspare
2024-03-19 22:17:49 -04:00
parent af3d957752
commit 60b3960f52
4 changed files with 7 additions and 15 deletions
+2 -2
View File
@@ -10,6 +10,6 @@ RUN bun install --frozen-lockfile --production
COPY . /app
ENV NODE_ENV production
ENTRYPOINT ["bun", "run", "start"]
ENTRYPOINT ["bun", "run", "server"]
EXPOSE 1234 1235
EXPOSE 1234
+3 -1
View File
@@ -15,7 +15,9 @@ async function main({ url }: { url: string }) {
headers: data.headers,
})
.then((res) => res.text())
.then(socket.send);
.then((res) => {
socket.send(res);
});
}
});
+1 -11
View File
@@ -1,7 +1,5 @@
# 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.
#
app = 'tunnel'
primary_region = 'yul'
@@ -19,12 +17,4 @@ primary_region = 'yul'
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
# [[services]]
# internal_port = 1235
# protocol = "tcp"
[[services.ports]]
handlers = ["tls", "http"]
port = 443
cpus = 1
+1 -1
View File
@@ -15,7 +15,7 @@
},
"scripts": {
"server": "bun run server.ts",
"lt": "bun run client/index.ts",
"lt": "bun run client.ts",
"demo": "bun run demo.ts"
}
}