V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
azev
V2EX  ›  问与答

Caddy 启动提示是什么意思

  •  
  •   azev · Sep 8, 2020 · 2249 views
    This topic created in 2070 days ago, the information mentioned may be changed or developed.

    都是 info 提示
    INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
    这个只是提示?不需要做什么?不太明白那个格式,srv0 是 ip ?

    还有一个提示
    INFO http server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {"server_name": "srv0", "https_port": 443}
    这个需要做什么吗?也看不太明白。

    3 replies    2020-09-09 08:42:50 +08:00
    ss098
        1
    ss098  
       Sep 9, 2020
    srv0 是你的 Web 服务器名,通过 apps.http.servers 配置,第二条指没有配置对应的 tls_connection_policies 。

    如果没有高级需求,不需要做修改。

    https://caddyserver.com/docs/json/apps/http/servers/
    https://caddyserver.com/docs/json/apps/http/servers/tls_connection_policies/
    301
        2
    301  
       Sep 9, 2020 via Android
    我猜你是用 Caddyfile 配置的,Caddy 会把它转换成 json 格式保存在~/.caddy/autosave.json,你看看这个,再看看楼上的链接就明白了
    azev
        3
    azev  
    OP
       Sep 9, 2020
    @ss098 @301 ok 多谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1033 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.