mirror of
https://github.com/kou029w/http-echo.git
synced 2025-01-18 16:08:13 +00:00
create fly.io apps file
This commit is contained in:
parent
163aa8a9b3
commit
af36d77317
2 changed files with 27 additions and 0 deletions
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM node:alpine
|
||||||
|
ADD package.json .
|
||||||
|
RUN npm i
|
||||||
|
ADD index.js .
|
||||||
|
CMD ["npm","start"]
|
22
fly.toml
Normal file
22
fly.toml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
app = "http-echo"
|
||||||
|
|
||||||
|
|
||||||
|
[[services]]
|
||||||
|
internal_port = 8080
|
||||||
|
protocol = "tcp"
|
||||||
|
|
||||||
|
[services.concurrency]
|
||||||
|
hard_limit = 25
|
||||||
|
soft_limit = 20
|
||||||
|
|
||||||
|
[[services.ports]]
|
||||||
|
handlers = ["http"]
|
||||||
|
port = "80"
|
||||||
|
|
||||||
|
[[services.ports]]
|
||||||
|
handlers = ["tls", "http"]
|
||||||
|
port = "443"
|
||||||
|
|
||||||
|
[[services.tcp_checks]]
|
||||||
|
interval = 10000
|
||||||
|
timeout = 2000
|
Loading…
Add table
Reference in a new issue