ea26c8038e
- /home/Cloud/Private/remove_dot_gitkeep - /home/Cloud/Public/remove_dot_gitkeep - /home/dot_config/docker/plugins.json - /home/dot_config/rclone/merge_rclone.conf - /home/dot_config/rclone/s3-docker.service.tmpl - /home/dot_config/rclone/s3-private.service.tmpl - /home/dot_config/rclone/s3-public.service.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_07-docker-plugins.tmpl - /home/dot_config/rclone/s3-user.service.tmpl - /home/dot_config/rclone/private_system-rclone.conf.tmpl - /home/dot_config/rclone/merge_private_rclone.conf - /home/dot_config/rclone/system/s3-private.service.tmpl - /home/dot_config/rclone/system/s3-public.service.tmpl - /home/dot_config/rclone/private_docker-rclone.conf.tmpl - /home/Cloud/symlink_Private - /home/Cloud/symlink_Public - /home/Cloud/symlink_User
11 lines
No EOL
619 B
Cheetah
11 lines
No EOL
619 B
Cheetah
{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-cloudflare-r2-id")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "key-cloudflare-r2-secret")) (ne .user.cloudflare.r2 "") -}}
|
|
[docker]
|
|
access_key_id = {{ includeTemplate "secrets/key-cloudflare-r2-id" | decrypt -}}
|
|
acl = private
|
|
endpoint = {{ .user.cloudflare.r2 }}.r2.cloudflarestorage.com/docker
|
|
env_auth = false
|
|
provider = Cloudflare
|
|
region = auto
|
|
secret_access_key = {{ includeTemplate "secrets/key-cloudflare-r2-secret" | decrypt -}}
|
|
type = s3
|
|
{{ end -}} |