From 7a3a482f0e3ab4e427898499471f41c49e4b1ff4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Jul 2026 17:17:36 -0400 Subject: [PATCH] Updating name references --- .env.docker.sample | 6 +++--- .env.local.sample | 6 +++--- .gitea/workflows/pr.yml | 18 +++++++++--------- .gitea/workflows/workflow.yml | 32 ++++++++++++++++---------------- Dockerfile | 6 +++--- docker-compose.yml | 8 ++++---- tests/tests.rs | 12 ++++++------ 7 files changed, 44 insertions(+), 44 deletions(-) diff --git a/.env.docker.sample b/.env.docker.sample index 3d5a382..5c68032 100644 --- a/.env.docker.sample +++ b/.env.docker.sample @@ -1,11 +1,11 @@ SECRET_KEY=NULqYIzgt28bTiyziCd7IOO7b6LnWDW! -DB_AUTH_NAME=textsender_auth_db -DB_AUTH_USER=textsender_auth +DB_AUTH_NAME=schedtxt_auth_db +DB_AUTH_USER=schedtxt_auth DB_AUTH_PASSWORD=password DB_AUTH_HOST=auth_db DB_AUTH_PORT=5432 DB_AUTH_SSLMODE=disable DATABASE_URL=postgres://${DB_AUTH_USER}:${DB_AUTH_PASSWORD}@${DB_AUTH_HOST}:${DB_AUTH_PORT}/${DB_AUTH_NAME} ENABLE_REGISTRATION=true -ALLOWED_ORIGINS="http://textsender.com,http://localhost:5173,http://localhost:9080" +ALLOWED_ORIGINS="http://schedtxt.com,http://localhost:5173,http://localhost:9080" APP_ENV=production diff --git a/.env.local.sample b/.env.local.sample index eb17ac6..29bdff3 100644 --- a/.env.local.sample +++ b/.env.local.sample @@ -1,11 +1,11 @@ SECRET_KEY=NULqYIzgt28bTiyziCd7IOO7b6LnWDW! -DB_AUTH_NAME=textsender_auth_db -DB_AUTH_USER=textsender_auth +DB_AUTH_NAME=schedtxt_auth_db +DB_AUTH_USER=schedtxt_auth DB_AUTH_PASSWORD=password DB_AUTH_HOST=localhost DB_AUTH_PORT=5432 DB_AUTH_SSLMODE=disable DATABASE_URL=postgres://${DB_AUTH_USER}:${DB_AUTH_PASSWORD}@${DB_AUTH_HOST}:${DB_AUTH_PORT}/${DB_AUTH_NAME} ENABLE_REGISTRATION=true -ALLOWED_ORIGINS="http://textsender.com,http://localhost:5173,http://localhost:9080" +ALLOWED_ORIGINS="http://schedtxt.com,http://localhost:5173,http://localhost:9080" APP_ENV=production diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 90c33fa..3da5097 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -21,12 +21,12 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo check @@ -43,12 +43,12 @@ jobs: - run: rustup component add rustfmt - run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo fmt --all -- --check clippy: @@ -63,10 +63,10 @@ jobs: - run: rustup component add clippy - run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo clippy -- -D warnings diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index d45d94c..7e21c82 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -1,4 +1,4 @@ -name: textsender_auth Build +name: schedtxt_auth Build on: push: @@ -21,12 +21,12 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo check @@ -81,12 +81,12 @@ jobs: ENABLE_REGISTRATION: 'TRUE' run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo test @@ -102,12 +102,12 @@ jobs: - run: rustup component add rustfmt - run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo fmt --all -- --check clippy: @@ -122,12 +122,12 @@ jobs: - run: rustup component add clippy - run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo clippy -- -D warnings build: @@ -141,10 +141,10 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: | mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key - chmod 600 ~/.ssh/textsender-models_deploy_key + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/schedtxt-models_deploy_key + chmod 600 ~/.ssh/schedtxt-models_deploy_key ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts eval $(ssh-agent -s) - ssh-add -v ~/.ssh/textsender-models_deploy_key + ssh-add -v ~/.ssh/schedtxt-models_deploy_key cargo build --release diff --git a/Dockerfile b/Dockerfile index 1edb8d5..209485e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ COPY Cargo.toml Cargo.lock ./ RUN --mount=type=ssh mkdir src && \ echo "fn main() {println!(\"if you see this, the build broke\")}" > src/main.rs && \ cargo build --release --quiet && \ - rm -rf src target/release/deps/textsender_auth* + rm -rf src target/release/deps/schedtxt_auth* COPY src ./src COPY .env ./.env @@ -33,7 +33,7 @@ RUN apt-get update && apt-get install -y ca-certificates libssl-dev libssl3 && r WORKDIR /usr/local/bin -COPY --from=builder /usr/src/app/target/release/textsender_auth . +COPY --from=builder /usr/src/app/target/release/schedtxt_auth . COPY --from=builder /usr/src/app/.env . COPY --from=builder /usr/src/app/migrations ./migrations @@ -41,4 +41,4 @@ COPY --from=builder /usr/src/app/migrations ./migrations EXPOSE 9080 # Set the command to run your application -CMD ["./textsender_auth"] +CMD ["./schedtxt_auth"] diff --git a/docker-compose.yml b/docker-compose.yml index e9bd44e..9251492 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: . ssh: ["default"] - container_name: textsender_auth + container_name: schedtxt_auth ports: - "9080:9080" env_file: @@ -18,11 +18,11 @@ services: # PostgreSQL Database Service auth_db: image: postgres:18.4-alpine - container_name: textsender_auth_db + container_name: schedtxt_auth_db environment: - POSTGRES_USER: ${DB_AUTH_USER:-textsender_op} + POSTGRES_USER: ${DB_AUTH_USER:-schedtxt_op} POSTGRES_PASSWORD: ${DB_AUTH_PASSWORD:-password} - POSTGRES_DB: ${DB_AUTH_NAME:-textsender_auth_db} + POSTGRES_DB: ${DB_AUTH_NAME:-schedtxt_auth_db} volumes: # Persist database data using a named volume - postgres_data:/var/lib/postgresql diff --git a/tests/tests.rs b/tests/tests.rs index 7f496af..bfc56ca 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,7 +1,7 @@ -use textsender_auth; -use textsender_auth::callers; -use textsender_auth::db; -use textsender_auth::init; +use schedtxt_auth; +use schedtxt_auth::callers; +use schedtxt_auth::db; +use schedtxt_auth::init; mod db_mgr { use std::str::FromStr; @@ -231,7 +231,7 @@ pub mod requests { user_id: &uuid::Uuid, ) -> Result { let url = super::util::format_url_with_value( - textsender_auth::callers::endpoints::GET_USER_PROFILE, + schedtxt_auth::callers::endpoints::GET_USER_PROFILE, user_id, ); match axum::http::Request::builder() @@ -1063,7 +1063,7 @@ async fn test_get_user_profile() { match requests::get_user_profile(&app, &user_id).await { Ok(response) => { match util::convert_response::< - textsender_auth::callers::login::response::GetUserProfileResponse, + schedtxt_auth::callers::login::response::GetUserProfileResponse, >(response) .await {