diff --git a/README.md b/README.md index d288820..2a8a6ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # nezha-fly ## 部署哪吒面板到fly.io - +适用v1 ## 原理 通过基于原哪吒面板的docker镜像,在fly.io中mount做持久化储存 @@ -11,7 +11,13 @@ action secrets ## 首次部署 -1. 先运行`fly launch`创建一个app,名字填`fly.toml`里面的, 我的是`fakev-status`可以改,但需要保持一样 -2. 要手动触发action -3. 打开网站修改设置,比如站点名称,url +1. 修改fly.toml的`app`成你的,运行`fly launch`创建一个app,然后进行配置选择 +![alt text](image/WXWorkCapture_17356960792229.png) +![alt text](image/WXWorkCapture_17356381582218.png) +2. 部署完成后,登录站点继续配置,比如站点名称,url +![alt text](image/WXWorkCapture_17356955117160.png) + +## 自动更新 +action有定时检查更新脚本,会定期运行,如果有更新会自动同步 + ## 展示网址 () diff --git a/fly.toml b/fly.toml index f2e1461..5415244 100644 --- a/fly.toml +++ b/fly.toml @@ -1,15 +1,10 @@ -# fly.toml app configuration file generated for fakev-status on 2024-12-31T09:43:00Z +# fly.toml app configuration file generated for fakev-status on 2025-01-01T01:48:19Z # # See https://fly.io/docs/reference/configuration/ for information about how to use this file. # app = 'fakev-status' primary_region = 'sin' -kill_signal = 'SIGINT' -kill_timeout = '5s' - -[experimental] - auto_rollback = true [build] @@ -19,33 +14,14 @@ kill_timeout = '5s' [http_service] internal_port = 8008 + force_https = true + auto_stop_machines = 'stop' + auto_start_machines = true + min_machines_running = 0 + processes = ['app'] [http_service.http_options] h2_backend = true -[[services]] - protocol = 'tcp' - internal_port = 80 - processes = ['app'] - - [[services.ports]] - port = 80 - handlers = ['http'] - force_https = true - - [[services.ports]] - port = 443 - handlers = ['tls', 'http'] - - [services.concurrency] - type = 'connections' - hard_limit = 25 - soft_limit = 20 - - [[services.tcp_checks]] - interval = '15s' - timeout = '2s' - grace_period = '1s' - [[vm]] size = 'shared-cpu-1x' diff --git a/image/WXWorkCapture_17356381582218.png b/image/WXWorkCapture_17356381582218.png new file mode 100644 index 0000000..7157fbd Binary files /dev/null and b/image/WXWorkCapture_17356381582218.png differ diff --git a/image/WXWorkCapture_17356955117160.png b/image/WXWorkCapture_17356955117160.png new file mode 100644 index 0000000..ac8abe5 Binary files /dev/null and b/image/WXWorkCapture_17356955117160.png differ diff --git a/image/WXWorkCapture_17356960792229.png b/image/WXWorkCapture_17356960792229.png new file mode 100644 index 0000000..a6d9e57 Binary files /dev/null and b/image/WXWorkCapture_17356960792229.png differ