From 9bf76f602c7ffc23323e1808036268e9d18ac8e6 Mon Sep 17 00:00:00 2001 From: Felipe Canin Novaes Date: Sun, 15 Mar 2026 21:14:52 -0300 Subject: [PATCH] update --- backend/.env.development => .env.exemple | 12 ++++++++++++ .gitignore | 1 + backend/.env.example | 18 ------------------ backend/mise.toml | 2 ++ docker-compose.yml | 6 ++---- 5 files changed, 17 insertions(+), 22 deletions(-) rename backend/.env.development => .env.exemple (73%) delete mode 100644 backend/.env.example create mode 100644 backend/mise.toml diff --git a/backend/.env.development b/.env.exemple similarity index 73% rename from backend/.env.development rename to .env.exemple index e8e5e8a..6297327 100644 --- a/backend/.env.development +++ b/.env.exemple @@ -13,8 +13,20 @@ JWT_EXPIRY_SECS=3600 JWT_REFRESH_EXPIRY_SECS=2592000 GOOGLE_CLIENT_ID= +GOOGLE_CLIENT_ID_APPLE= GOOGLE_CLIENT_SECRET= HOST=0.0.0.0 PORT=8080 APP_ENV=development + +# --- Email (SMTP) --- +SMTP_HOST= +SMTP_PORT= +SMTP_USER= +SMTP_PASS= +EMAIL_FROM= + +# --- URLs --- +APP_BASE_URL=http://localhost:8080/api/v1 +APP_SCHEME=meowspool diff --git a/.gitignore b/.gitignore index 07ecc56..205a089 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ mobile/.env.production +db_data diff --git a/backend/.env.example b/backend/.env.example deleted file mode 100644 index 75abcac..0000000 --- a/backend/.env.example +++ /dev/null @@ -1,18 +0,0 @@ -# Banco de dados -DATABASE_URL=postgresql://meowspool:meowspool@localhost:5432/meowspool - -# JWT -JWT_SECRET=troque_por_um_secret_forte_em_producao_minimo_32_chars -JWT_EXPIRY_SECS=3600 -JWT_REFRESH_EXPIRY_SECS=2592000 - -# OAuth Google -GOOGLE_CLIENT_ID=seu_google_client_id.apps.googleusercontent.com -GOOGLE_CLIENT_SECRET=seu_google_client_secret - -# Servidor -HOST=0.0.0.0 -PORT=8080 - -# Ambiente (development | production) -APP_ENV=development diff --git a/backend/mise.toml b/backend/mise.toml new file mode 100644 index 0000000..86ed352 --- /dev/null +++ b/backend/mise.toml @@ -0,0 +1,2 @@ +[tools] +rust = "1.88" diff --git a/docker-compose.yml b/docker-compose.yml index 064bdba..f28ddc4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,11 +8,11 @@ services: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB} volumes: - - postgres_data:/var/lib/postgresql/data + - ./db_data:/var/lib/postgresql/data ports: - "${POSTGRES_PORT:-5432}:5432" healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"] + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 5 @@ -31,5 +31,3 @@ services: db: condition: service_healthy -volumes: - postgres_data: