查詢資料庫並動態產生 Open Graph 資訊和 Sitemap,提供外部預覧和搜索引擎爬蟲使用。使用 GitHub CI 部屬至Cloudflare。
GitHub repository secrets
- DATABASE_SERVICE:
COUCHDB
orCOSMOSDB
- COSMOS_KEY: CosmosDB readonly key
- COSMOS_ENDPOINT: Public CosmosDB endpoint. (ex:
https://myaccount.documents.azure.com:443/
) - COUCH_ENDPOINT: CouchDB endpoint with readonly username:password. (ex:
https://username:[email protected]/
← trailing slash is required) - BLOB_ENDPOINT_PUBLIC: Public Blob Storage endpoint. Get this from where your public thumbnail images can be accessed. (ex: This is a image url from our demo site, and this is the setting used here:
https://s3.recorder.moe/livestream-recorder-public/
← trailing slash is required)
https://developers.cloudflare.com/workers/
https://www.npmjs.com/package/@cfworker/cosmos
Warning
This Open Graph Tag Builder project is licensed under AGPLv3, means that you MUST open source your project to your end user (who can access the website processed by this worker) when you are using this project or using any code from this project. You can publicly fork this project and provide a link to your repository when users ask for it.
GNU AFFERO GENERAL PUBLIC LICENSE Version 3
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.