mirror of
https://github.com/RealOrangeOne/infrastructure.git
synced 2026-01-23 02:14:14 +00:00
Store forgejo packages in main storage
This commit is contained in:
parent
5112e9a4f8
commit
dad627a5bd
3 changed files with 29 additions and 83 deletions
|
|
@ -1,37 +1,3 @@
|
|||
resource "b2_bucket" "gitea" {
|
||||
bucket_name = "0rng-gitea"
|
||||
bucket_type = "allPrivate"
|
||||
|
||||
default_server_side_encryption {
|
||||
algorithm = "AES256"
|
||||
mode = "SSE-B2"
|
||||
}
|
||||
|
||||
lifecycle_rules {
|
||||
file_name_prefix = ""
|
||||
days_from_hiding_to_deleting = 1
|
||||
days_from_uploading_to_hiding = 0
|
||||
}
|
||||
}
|
||||
|
||||
resource "b2_application_key" "gitea" {
|
||||
key_name = "gitea"
|
||||
bucket_id = b2_bucket.gitea.id
|
||||
capabilities = [
|
||||
"readFiles",
|
||||
"deleteFiles",
|
||||
"listBuckets",
|
||||
"listFiles",
|
||||
"readBucketEncryption",
|
||||
"readBucketReplications",
|
||||
"readBuckets",
|
||||
"shareFiles",
|
||||
"writeBucketEncryption",
|
||||
"writeBucketReplications",
|
||||
"writeFiles",
|
||||
]
|
||||
}
|
||||
|
||||
resource "b2_bucket" "restic" {
|
||||
bucket_name = "0rng-restic"
|
||||
bucket_type = "allPrivate"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue