Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lyj0309 committed Jan 1, 2025
1 parent bffdb7a commit c8209e9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 34 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nezha-fly
## 部署哪吒面板到fly.io

适用v1
## 原理
通过基于原哪吒面板的docker镜像,在fly.io中mount做持久化储存

Expand All @@ -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有定时检查更新脚本,会定期运行,如果有更新会自动同步

## 展示网址 (<https://status.fakev.cn>
36 changes: 6 additions & 30 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -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]

Expand All @@ -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'
Binary file added image/WXWorkCapture_17356381582218.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/WXWorkCapture_17356955117160.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/WXWorkCapture_17356960792229.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8209e9

Please sign in to comment.