Skip to content
Snippets Groups Projects
Verified Commit 1ab25bd4 authored by creations's avatar creations :earth_africa:
Browse files

update readme

parent 58016ee4
Branches
No related tags found
No related merge requests found
# booru-api
# default config/secrets.ts file
## Setup Instructions
```ts
const redisConfig: RedisConfig = {
host: "127.0.0.1",
port: 6379,
};
1. Rename the example environment file to `.env`:
```bash
mv .example.env .env
```
2. Start the application in detached mode:
```bash
docker compose up -d
```
---
## Default `config/secrets.ts` File
```typescript
const e621Auth: Record<string, string> = {
"User-Agent": "domain/1.0 (by username on e621)",
Authorization: "Basic " + btoa("username:password"),
"User-Agent": "your-domain/1.0 (by your-username on e621)",
Authorization: "Basic " + btoa("your-username:your-password"),
};
export { e621Auth, redisConfig };
export { e621Auth };
```
> **Note**: Replace `your-username` and `your-password` with your e621 account credentials. Update the `User-Agent` string to include your domain and comply with e621's API guidelines.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment