Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger #3

Merged
merged 2 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
195 changes: 147 additions & 48 deletions backend/Cargo.lock

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

3 changes: 2 additions & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ futures = "0.3.16"
cookie = "0.16.0"
bcrypt = "0.12.0"
jsonwebtoken = "8.0.1"
env_logger = "0.9.0"
env_logger = "0.11.1"
image = "0.24.0"
rand = "0.8.4"
html-escape = "0.2.9"
Expand All @@ -31,6 +31,7 @@ web-push = "0.9.1"
unicode-segmentation = "1.9.0"
actix-identity = "0.5.2"
actix-session = { version = "0.7.2", features = ["redis-actor-session"] }
log = "0.4.20"
# openssl = { version = "0.10.40", features = ["vendored"] } # only needed to be able to compile to target "x86_64-unknown-linux-musl"

[profile.release]
Expand Down
8 changes: 4 additions & 4 deletions backend/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ services:
- ./:/speer/
- /speer/target
ports:
- "9001:9001"
- 9001:9001
depends_on:
- mongo
- redis
environment:
SPEER_SERVER_ADDRESS: "0.0.0.0:9001"
SPEER_REDIS_ADDRESS: "redis:6379"
SPEER_MONGO_URL: "mongodb://mongo:27017"
SPEER_SERVER_ADDRESS: 0.0.0.0:9001
SPEER_REDIS_ADDRESS: redis:6379
SPEER_MONGO_URL: mongodb://mongo:27017

mongo:
image: mongo
Expand Down
3 changes: 2 additions & 1 deletion backend/dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ RUN cargo build --release

FROM debian:bookworm-slim
WORKDIR /speer
RUN apt-get update && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y openssl wget && rm -rf /var/lib/apt/lists/*
COPY --from=builder /speer/target/release/speer /speer/speer
COPY --from=builder /speer/changelog.json /speer/changelog.json
COPY --from=builder /speer/emails /speer/emails
Expand Down
Loading