import React, { useContext } from "react"; import KeyValueTable from "./components/key-value-table"; import { ServerStatusContext } from '../utils/server-status-context'; import { Typography } from 'antd'; import Link from 'next/link'; const { Title } = Typography; function Storage({ config }) { if (!config || !config.s3) { return null; } if (!config.s3.enabled) { return (
External Storage

You are currently using the local storage of this Owncast server to store and distribute video.

Owncast can use S3-compatible external storage providers to offload the responsibility of disk and bandwidth utilization from your own server.

Visit our storage documentation to learn how to configure this.

); } const data = [ { name: "Enabled", value: config.s3.enabled.toString(), }, { name: "Endpoint", value: config.s3.endpoint, }, { name: "Access Key", value: config.s3.accessKey, }, { name: "Secret", value: config.s3.secret, }, { name: "Bucket", value: config.s3.bucket, }, { name: "Region", value: config.s3.region, }, ]; return ; } export default function ServerConfig() { const serverStatusData = useContext(ServerStatusContext); const { serverConfig: config } = serverStatusData || {}; return (
); }