查詢資料庫並動態產生 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:password@couchdb.recorder.moe/
← 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.
![open graph](https://private-user-images.githubusercontent.com/16995691/291064432-6234ae4e-8d5f-4d06-b716-2cdadeb5da21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5MzYwNDQsIm5iZiI6MTcyNTkzNTc0NCwicGF0aCI6Ii8xNjk5NTY5MS8yOTEwNjQ0MzItNjIzNGFlNGUtOGQ1Zi00ZDA2LWI3MTYtMmNkYWRlYjVkYTIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDAyMzU0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhMGQxODU4Zjg2N2ZlYjliY2JjMTE2NzM3NjJmZDE4MmM4MzZiNzA4OGMwMjJhMjQ0M2FiODBlNDE5YzZiOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zT672UvRbIfL2ftEwrf6adwCwXYtkfNpqPe1fha7TV0)
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/.