Completed for a grade of three

This commit is contained in:
2026-11-18 13:55:24 +03:00
parent cd84a6fd36
commit 248f8a5cb0
77 changed files with 4100 additions and 251 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -eu
# The password is read only inside the container and is never written to logs.
export RABBITMQ_DEFAULT_USER=messenger
export RABBITMQ_DEFAULT_PASS="$(cat /run/secrets/broker_password)"
exec docker-entrypoint.sh rabbitmq-server
+3
View File
@@ -0,0 +1,3 @@
# Job envelopes contain identifiers only, never image bytes.
max_message_size = 16384
consumer_timeout = 300000
+1 -1
View File
@@ -12,7 +12,7 @@ cat > /tmp/attachment-policy.json <<EOF
"Version": "2012-10-17",
"Statement": [
{"Effect":"Allow","Action":["s3:ListBucket"],"Resource":["arn:aws:s3:::$S3_BUCKET"]},
{"Effect":"Allow","Action":["s3:GetObject","s3:PutObject","s3:DeleteObject"],"Resource":["arn:aws:s3:::$S3_BUCKET/originals/*"]}
{"Effect":"Allow","Action":["s3:GetObject","s3:PutObject","s3:DeleteObject"],"Resource":["arn:aws:s3:::$S3_BUCKET/originals/*","arn:aws:s3:::$S3_BUCKET/staging/*","arn:aws:s3:::$S3_BUCKET/variants/*"]}
]
}
EOF