久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價!!!
當前位置:主頁 > 網(wǎng)站建設(shè) > 如何利用fly.io搭建哪吒探針前端開發(fā)

如何利用fly.io搭建哪吒探針前端開發(fā)

時間:2023-05-28 18:05:28 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 網(wǎng)絡(luò)小編

導(dǎo)讀:前端開發(fā)前端開發(fā) clientid: "" # 在 https://github.com/settings/developers 創(chuàng)建,無需審核 Callback 填 http網(wǎng)站seo優(yōu)化課程公司網(wǎng)站建設(shè)。

網(wǎng)站seo優(yōu)化課程公司網(wǎng)站建設(shè)

1.從github拉取哪吒探針最新源碼,進入源碼根目錄。

2.修改cmd/dashboard/main.go:

import ( "...." "...." "os" "fmt" "...." "...." "...." ) .... .... func init() { //新建conf文件 file6, err := os.Create("data/config.yaml") if err != nil { fmt.Println(err) } data := `debug: false httpport: 80 grpcport: 7777 oauth2: type: "github" #Oauth2 登錄接入類型,gitee/github admin: "" #管理員列表,半角逗號隔開 clientid: "" # 在 https://github.com/settings/developers 創(chuàng)建,無需審核 Callback 填 http(s)://域名或IP/oauth2/callback clientsecret: "" site: brand: "名字" cookiename: "nezha-dashboard" #瀏覽器 Cookie 字段名,可不改 theme: "default" ` file6.WriteString(data) file6.Close() // 初始化 dao 包 singleton.Init() singleton.InitConfigFromPath("data/config.yaml") singleton.InitDBFromPath("data/sqlite.db") singleton.InitLocalizer() initSystem() } flyctl deploy #填寫相關(guān)配置信息

3.編輯生成的fly.toml為:

app = "名字" kill_signal = "SIGINT" kill_timeout = 5 process網(wǎng)站建設(shè)es = [] [env] [experimental] allowed_public_ports = [] auto_rollback = true [mounts] destination = "/dashboard/data" source = "卷名,seo網(wǎng)站關(guān)鍵詞優(yōu)化隨便起,下面用的到" [[services]] http_checks = [] internal_port = 80 processes = ["app"] protocol = "tcp" script_checks = [] [services.concurrency] hard_limit = 25 soft_limit = 20 type = "connections" [[services.ports]] handlers = ["http"] port = 80 [[services.ports]] handlers = ["tls", "http"] port = 443 [[services.tcp_checks]] grace_period = "1s" interval = "15s" restart_limit = 0 timeout = "2s" [[services]] http_checks = [] internal_port = 7777 processes = ["app"] protocol = "tcp" script_checks = [] [services.concurrency] hard_limit = 25 soft_limit = 20 type = "connections" [[公司網(wǎng)站建設(shè)services.ports]] port = 7777 [[services.tcp_checks]] grace_period = "1s" interval = "15s" restart_limit = 0 timeout = "2s"

4.為了數(shù)據(jù)持久化,創(chuàng)建一個卷存放數(shù)據(jù):

fly volumes create 卷名 --region hkg --size 1

5.啟動:

fly deploy --no-cache --remote-only

6.等待創(chuàng)建完畢就大功告成了!

demo:https://mynezhatz.fly.dev/

相關(guān)網(wǎng)站seo優(yōu)化課程公司網(wǎng)站建設(shè)。

關(guān)鍵詞標簽: 哪吒探針

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-28 ,文章如何利用fly.io搭建哪吒探針前端開發(fā)主要講述哪吒探針網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_11439.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 钦州市| 鄂托克旗| 德庆县| 龙川县| 浪卡子县| 阿坝县| 兴义市| 田林县| 福安市| 高密市| 博兴县| 阳原县| 北流市| 米林县| 广平县| 内乡县| 尉犁县| 卢湾区| 永城市| 湄潭县| 任丘市| 甘南县| 诸暨市| 三亚市| 江油市| 察雅县| 双峰县| 安乡县| 隆回县| 富锦市| 江孜县| 田林县| 额尔古纳市| 和林格尔县| 绩溪县| 玉树县| 兴山县| 桐庐县| 璧山县| 东丰县| 昭觉县|