All the assets and other files for the CDN hosted at cdn.wanderer.moe
- using Cloudflare's R2 Storage.
Configuration for Github Actions is stored in .github/workflows/deploy.yml
.
- Each push to
main
will trigger deployment usingrclone
to the R2 Bucket, where the CDN is hosted.
The R2 bucket is synced using rclone
.
-
The
RCLONE_CONFIG
environment variable is used to store the configuration forrclone
- 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 therclone
command.
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.