Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
/ cdn Public archive

πŸ“ All assets and other files used in wanderer.moe β€” hosted with Cloudflare R2.

License

Notifications You must be signed in to change notification settings

wanderer-moe/cdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

64 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Banner

CDN Response CDN Response 24h CDN Response 7d

All the assets and other files for the CDN hosted at cdn.wanderer.moe - using Cloudflare's R2 Storage.


Usage

Github Actions

Configuration for Github Actions is stored in .github/workflows/deploy.yml.

  • Each push to main will trigger deployment using rclone to the R2 Bucket, where the CDN is hosted.

rclone & R2 Setup

The R2 bucket is synced using rclone.

  • The RCLONE_CONFIG environment variable is used to store the configuration for rclone - this is stored in the Github repository secrets. (encoded into Base64)

  • If you are to use this repository to base your own R2 bucket off of, you will need to change the rclone configuration to your own:

[r2]
type = s3
provider = Cloudflare
access_key_id = <access_key_id>
secret_access_key = <secret_access_key>
endpoint = https://<bucket_name>.r2.cloudflarestorage.com/
acl = private
  • The configuration above will give you access to all your R2 buckets, and will allow you to sync to them, you would specify like r2:<bucket_name> in the rclone command.

Authors

License

wanderer-moe/cdn is licensed under the GNU Affero General Public License v3.0 - You must state all significant changes made to the original software, make the source code available to the public with credit to the original author, original source, and use the same license.

About

πŸ“ All assets and other files used in wanderer.moe β€” hosted with Cloudflare R2.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published