基于腾讯云EdgeOne和KV存储的静态HTML部署平台
X-Pages是一个强大的HTML部署服务,使用腾讯云EdgeOne的KV存储来管理和部署静态HTML内容。所有的部署和删除操作都需要通过x-token进行安全认证。
x-token认证令牌。
Authorization: x-token: your-secret-token
部署HTML内容到KV存储
Headers:
x-token: your-secret-token htmlkey: my-website title: 我的网站 (可选) description: 网站描述 (可选) Content-Type: text/html
Body (直接传输HTML内容):
My Site Hello World!
删除指定的HTML站点
直接访问部署的HTML站点(无需认证)
curl -X POST "https://qa-xsl-pages.dimsky.cn/html/deploy" \ -H "Content-Type: text/html" \ -H "x-token: your-secret-token" \ -H "htmlkey: hello-world" \ -H "title: Hello World Site" \ --data-raw "Hello Hello World!
"
curl "https://qa-xsl-pages.dimsky.cn/hello-world"
curl -X DELETE "https://qa-xsl-pages.dimsky.cn/html/delete?siteName=hello-world" \ -H "x-token: your-secret-token"