登录域名服务商控制台,添加一条二级域名pangu-admin.pulanit.com的解析记录。 修改配置文件 代码语言:shell AI代码解释 # vi /etc/caddy/Caddyfilepangu-admin.pulanit.com{# Set this path to your site's directory.root * /var/www/pangu-admin encodegzip# Enable the static file server.file_server# An...
登录域名服务商控制台,添加一条二级域名 pangu-admin.pulanit.com 的解析记录。 修改配置文件 # vi /etc/caddy/Caddyfile pangu-admin.pulanit.com { # Set this path to your site's directory. root * /var/www/pangu-admin encode gzip # Enable the static file server. file_server # Another common...
If true, the admin endpoint will be completely disabled. Note that this makes any runtime changes to the config impossible, since the interface to do so is through the admin endpoint. 🔗listen The address to which the admin endpoint's listener should bind itself. Can be any single network...
-address string The address to use to reach the admin API endpoint, if not the default 如果你的start是使用默认的localhost:2019管理地址启动的,那么直接使用stop命令就可以优雅的停止caddy,如果不是默认的,那么需要使用-address来指定管理地址。 //因为我的caddy的管理地址是localhost:2021,所以需要指定才可以停...
此时访问域名或者IP即可,如下图,账号密码都是Admin 四、其他 1、Filebrowser可以直接用80端口? 答案:是的,可以,直接命令,但不推荐(因为缺乏TLS证书,浏览器会提醒) nohup ~/.filebrowserconfig set --port80 -a 0.0..0.0 > /dev/null 2>&1 &
Configure your server your way. Caddy's native configuration format is JSON, and with Caddy's config adapters, you can use any config format you prefer. All configuration is posted through a RESTful admin API, and Caddy's CLI helps you work with config files easily. ...
Try The API: Apply the admin API to Caddy to ensure its configuration is correct. Configure Caddy: Provide Caddy with a configuration to make it useful. Run The Test: Verify its functionality by accessing localhost:2015 in your web browser or by utilizing curl. Design A Caddyfile: Caddy can...
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target 最后,我们启动 Caddy: 代码语言:sh AI代码解释 sudosystemctl daemon-reloadsudosystemctlenable--nowcaddysudosystemctl status caddy 注意:如果你使用的是CentOS7,由于其 systemd 版本过低(219),需要先进行升级。
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS - caddy/admin.go at master · caddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS - caddy/admin_test.go at master · diev/caddy