Skip to content

Commit

Permalink
🔒️ stop commit with .env
Browse files Browse the repository at this point in the history
  • Loading branch information
matv864 committed Sep 3, 2024
1 parent f8536c8 commit a8d0939
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
10 changes: 0 additions & 10 deletions backend/.env

This file was deleted.

20 changes: 19 additions & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,22 @@ In addition, facilitate the use of the databaser, I created custom pages to comp
I also created migrations from Alembic for easy working with the database.

## access to storage
frontend can fetch image by requesting to <domain>/storage/<image_path>, which throw nginx walk to storage folder and fetch the required image
frontend can fetch image by requesting to <domain>/<image_full_path>, which throw nginx walk to storage folder and fetch the required image


## env file
```
# for connecting to postgres
POSTGRES_NAME_SERVICE=smm_shelter-postgres
POSTGRES_DB=pets-service
POSTGRES_USER=
POSTGRES_PASSWORD=
# paths to save backups of database and storage
PATH_TO_SAVE_DUMP=/backup/dump_pets.sql
PATH_TO_SAVE_BACKUP=/backup/storage.zip
# login system of sqlAdmin
ADMIN_USERNAME=
HASHED_PASSWORD=
```

0 comments on commit a8d0939

Please sign in to comment.