admin管理员组文章数量:1124694
I am trying to use caddy to serve some static files for a local development API
my compose file:
services:
caddy:
container_name: caddy_api
image: caddy
restart: unless-stopped
ports:
- "443:443"
- "8000:80"
volumes:
- ./www:/var/www/app
- ./Caddyfile:/etc/caddy/Caddyfile
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "2"
when I query the container I can see my files:
docker exec -ti caddy_api ls /var/www/app;
api client.js index.html
my caddyfile:
dev.lan {
tls internal
root * /var/www/app;
file_server
}
When I access the I get a blank page but html is not loaded, there is no error message so the connection is happening (I can see the TLS certificate); just not loading the index.html
file
本文标签: caddyfileCaddy not serving html indexStack Overflow
版权声明:本文标题:caddyfile - Caddy not serving html index - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736644296a1946069.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论