Fly.io:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(创建页面,内容为“'''Fly.io'''是一個SaaS供應商。 == 外部連結 == * {{Official|https://fly.io/}} {{en}}”)
 
无编辑摘要
第1行: 第1行:
'''Fly.io'''是一個[[SaaS]]供應商。
'''Fly.io'''是一個[[SaaS]]供應商。
== Cheatsheet ==
=== PHP ===
<code>fly.toml</code>:
<syntaxhighlight lang="toml">
app = "example-app-12345"
kill_signal = "SIGINT"
kill_timeout = 5
primary_region = "nrt"
processes = []
[build]
  dockerfile = "Dockerfile"
[env]
  PORT=8080
[experimental]
  auto_rollback = true
[[services]]
  http_checks = []
  internal_port = 80
  min_machines_running = 0
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
   hard_limit = 25
   soft_limit = 20
   type = "connections"
  [[services.ports]]
   force_https = true
   handlers = ["http"]
   port = 80
  [[services.ports]]
   handlers = ["tls", "http"]
   port = 443
  [[services.tcp_checks]]
   grace_period = "1s"
   interval = "15s"
   restart_limit = 0
   timeout = "2s"
</syntaxhighlight>
<code>Dockerfile</code>:
<syntaxhighlight lang="dockerfile">
ARG WEBROOT=/var/www/html/public
FROM richarvey/nginx-php-fpm:3.1.4
</syntaxhighlight>


== 外部連結 ==
== 外部連結 ==


* {{Official|https://fly.io/}} {{en}}
* {{Official|https://fly.io/}} {{en}}

2023年6月9日 (五) 19:35的版本

Fly.io是一个SaaS供应商。

Cheatsheet

PHP

fly.toml

app = "example-app-12345"
kill_signal = "SIGINT"
kill_timeout = 5
primary_region = "nrt"
processes = []

[build]
  dockerfile = "Dockerfile"

[env]
  PORT=8080

[experimental]
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 80
  min_machines_running = 0
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

Dockerfile

ARG WEBROOT=/var/www/html/public
FROM richarvey/nginx-php-fpm:3.1.4

外部链接