diff --git a/Cargo.lock b/Cargo.lock index d129813..27690b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -947,29 +947,6 @@ dependencies = [ "imgref", ] -[[package]] -name = "marshallku-blog-cdn" -version = "1.1.3" -dependencies = [ - "axum", - "dotenv", - "env_logger", - "http-body-util", - "image", - "log", - "mime_guess", - "reqwest", - "tempfile", - "tokio", - "tokio-util", - "tower", - "tower-http", - "tracing", - "tracing-subscriber", - "url", - "webp", -] - [[package]] name = "matchers" version = "0.1.0" @@ -1592,6 +1569,29 @@ version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +[[package]] +name = "rustycdn" +version = "1.1.3" +dependencies = [ + "axum", + "dotenv", + "env_logger", + "http-body-util", + "image", + "log", + "mime_guess", + "reqwest", + "tempfile", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tracing", + "tracing-subscriber", + "url", + "webp", +] + [[package]] name = "ryu" version = "1.0.18" diff --git a/Cargo.toml b/Cargo.toml index 4929bc1..e67dd98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "marshallku-blog-cdn" +name = "rustycdn" version = "1.1.3" edition = "2021" diff --git a/Dockerfile b/Dockerfile index 90152e9..3684904 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM rust:1.73-alpine AS base -WORKDIR /usr/src/marshallku-blog-cdn +WORKDIR /usr/src/rustycdn RUN set -eux; \ apk add --no-cache musl-dev pkgconfig libressl-dev; \ @@ -11,8 +11,8 @@ COPY Cargo.* . RUN mkdir src && \ echo 'fn main() {println!("Hello, world!");}' > src/main.rs && \ cargo build --release && \ - rm target/release/marshallku-blog-cdn* && \ - rm target/release/deps/marshallku_blog_cdn* && \ + rm target/release/rustycdn* && \ + rm target/release/deps/rustycdn* && \ rm -rf src FROM base AS builder @@ -24,8 +24,8 @@ FROM alpine:3.14 WORKDIR /usr/local/bin -COPY --from=builder /usr/src/marshallku-blog-cdn/target/release/marshallku-blog-cdn . +COPY --from=builder /usr/src/rustycdn/target/release/rustycdn . EXPOSE 41890 -CMD ["./marshallku-blog-cdn"] \ No newline at end of file +CMD ["./rustycdn"] \ No newline at end of file diff --git a/README.md b/README.md index 0675936..d53ca3b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# Blog CDN +# RustyCDN -[![CI](https://github.com/marshallku/marshallku-blog-cdn/actions/workflows/ci.yml/badge.svg)](https://github.com/marshallku/marshallku-blog-cdn/actions/workflows/ci.yml) -[![Deploy to Container Registry](https://github.com/marshallku/marshallku-blog-cdn/actions/workflows/deploy.yml/badge.svg)](https://github.com/marshallku/marshallku-blog-cdn/actions/workflows/deploy.yml) +[![CI](https://github.com/marshallku/rustycdn/actions/workflows/ci.yml/badge.svg)](https://github.com/marshallku/rustycdn/actions/workflows/ci.yml) +[![Deploy to Container Registry](https://github.com/marshallku/rustycdn/actions/workflows/deploy.yml/badge.svg)](https://github.com/marshallku/rustycdn/actions/workflows/deploy.yml) ![Quality Gate Status](https://badge.marshallku.dev?metric=alert_status&project=marshallku_marshallku-blog-cdn_7201a95a-ba17-439f-ac2d-60f1c9624f4c) ![Bugs](https://badge.marshallku.dev?metric=bugs&project=marshallku_marshallku-blog-cdn_7201a95a-ba17-439f-ac2d-60f1c9624f4c) diff --git a/config/nginx.conf b/config/nginx.conf index c50301a..c787912 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -6,7 +6,7 @@ server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name cdn.example.com; - root /home/example/marshallku-blog-cdn/cdn_root; + root /home/example/rustycdn/cdn_root; ssl_certificate "/etc/letsencrypt/live/cdn.example.com/fullchain.pem"; ssl_certificate_key "/etc/letsencrypt/live/cdn.example.com/privkey.pem"; diff --git a/cspell.json b/cspell.json index 0335ea3..2ce0c63 100644 --- a/cspell.json +++ b/cspell.json @@ -1,44 +1,45 @@ { - "words": [ - "actix", - "addrs", - "autodocs", - "BUILDKIT", - "callout", - "codebases", - "codepoint", - "codepoints", - "clippy", - "dotenv", - "hookform", - "iname", - "libressl", - "localforage", - "Luma", - "Malgun", - "marshallku", - "mindepth", - "nextjs", - "oneshot", - "pkgconfig", - "preconfigured", - "preconfigures", - "Pretendard", - "println", - "Promiseable", - "referer", - "reqwest", - "rfind", - "tempdir", - "tempfile", - "treeshake", - "tsup", - "Turborepo", - "vercel", - "wahlberg", - "WEBM", - "WEBP", - "xlink" - ], - "ignorePaths": ["Cargo.lock", "Cargo.toml", "target", "config/nginx.conf"] + "words": [ + "actix", + "addrs", + "autodocs", + "BUILDKIT", + "callout", + "clippy", + "codebases", + "codepoint", + "codepoints", + "dotenv", + "hookform", + "iname", + "libressl", + "localforage", + "Luma", + "Malgun", + "marshallku", + "mindepth", + "nextjs", + "oneshot", + "pkgconfig", + "preconfigured", + "preconfigures", + "Pretendard", + "println", + "Promiseable", + "referer", + "reqwest", + "rfind", + "rustycdn", + "tempdir", + "tempfile", + "treeshake", + "tsup", + "Turborepo", + "vercel", + "wahlberg", + "WEBM", + "WEBP", + "xlink" + ], + "ignorePaths": ["Cargo.lock", "Cargo.toml", "target", "config/nginx.conf"] }