跳至主要内容

托管公共资产

通过创建一个 data/public 目录并将您的文件放在那里,您可以提供任何希望公开的资产,出于任何原因。

Owncast 0.3.0 writes plugin-hosted files under data/public/plugins/, so do not place your own files there.

随后,您将能够通过您 Owncast 网络服务器上的 /public 路径访问这些资产。 例如:

https://stream.example.com/public/image.png

https://stream.example.com/public/style.css

您可能希望利用此功能的一些原因:

  • 提供一个 CSS 字体,以便您可以在自定义 CSS 中引用它。
  • 您有想在页面内容中使用的图片。
  • 一些您希望用户下载的任意文件没有其他地方可以托管。

Improve this page

See something missing or incorrect? Edit this page and improve the documentation for everyone.

Contributors to this documentation