Skip to content

Commit

Permalink
chore: install cert
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Oct 3, 2024
1 parent c9d0c17 commit f83e698
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ services:
build:
context: .
dockerfile: ./services/appflowy-worker/Dockerfile
ports:
- "4001:4001"
environment:
- RUST_LOG=${RUST_LOG:-info}
- APPFLOWY_WORKER_REDIS_URL=redis://redis:6379
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ services:
dockerfile: ./services/appflowy-worker/Dockerfile
environment:
- RUST_LOG=${RUST_LOG:-info}
- APPFLOWY_ENVIRONMENT=production
- APPFLOWY_WORKER_REDIS_URL=redis://redis:6379
- APPFLOWY_WORKER_ENVIRONMENT=production
- APPFLOWY_WORKER_DATABASE_URL=${APPFLOWY_WORKER_DATABASE_URL}
Expand All @@ -169,7 +170,6 @@ services:
- APPFLOWY_S3_SECRET_KEY=${APPFLOWY_S3_SECRET_KEY}
- APPFLOWY_S3_BUCKET=${APPFLOWY_S3_BUCKET}
- APPFLOWY_S3_REGION=${APPFLOWY_S3_REGION}

volumes:
postgres_data:
minio_data:
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.77.2"
5 changes: 3 additions & 2 deletions services/appflowy-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ infra.workspace = true
sqlx = { workspace = true, default-features = false, features = ["runtime-tokio-rustls", "macros", "postgres", "uuid", "chrono", "migrate"] }
secrecy = { version = "0.8", features = ["serde"] }
aws-sdk-s3 = { version = "1.36.0", features = [
"behavior-version-latest",
"rt-tokio",
"behavior-version-latest",
"rt-tokio",
] }
aws-config = { version = "1.5.1", features = ["behavior-version-latest"] }
tokio-util = { version = "0.7.12", features = ["compat"] }
async_zip = { version = "0.0.17", features = ["full"] }
mime_guess = "2.0"
Expand Down
1 change: 1 addition & 0 deletions services/appflowy-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ FROM debian:bookworm-slim AS runtime
WORKDIR /app/services/appflowy-worker
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends openssl \
&& apt-get install -y -y ca-certificates \
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
Expand Down
2 changes: 1 addition & 1 deletion services/appflowy-worker/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub async fn get_aws_s3_client(s3_setting: &S3Setting) -> Result<S3ClientImpl, E
s3_setting.secret_key.expose_secret().clone(),
None,
None,
"custom",
"appflowy-worker",
);
let shared_credentials = SharedCredentialsProvider::new(credentials);

Expand Down

0 comments on commit f83e698

Please sign in to comment.