Skip to content

Commit

Permalink
Merge pull request #3 from dmbtechdev/master
Browse files Browse the repository at this point in the history
X-Bot from Baris@dmbtechdev
  • Loading branch information
mjovanc authored Dec 17, 2024
2 parents 8574096 + 275133a commit 26fd307
Show file tree
Hide file tree
Showing 17 changed files with 4,076 additions and 7 deletions.
36 changes: 36 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Environment Configuration
ENVIRONMENT=development # or production

# Server Configuration
SERVER_HOST=127.0.0.1
SERVER_PORT=7878
WEBHOOK_PATH=/webhook

# Rate Limiting Configuration
RATE_LIMIT_MAX_REQUESTS=100
RATE_LIMIT_WINDOW_SECONDS=3600

# Retry Configuration
RETRY_MAX_ATTEMPTS=3
RETRY_INITIAL_DELAY_MS=1000
RETRY_MAX_DELAY_MS=5000

# Timeout Configuration (in seconds)
TIMEOUT_CONNECT_SECONDS=10
TIMEOUT_READ_SECONDS=30
TIMEOUT_WRITE_SECONDS=30

# GitHub Configuration
GITHUB_TOKEN=ghp_your_github_personal_access_token_here
REPO_OWNER=repository_owner_or_organization
REPO_NAME=repository_name

# X (Twitter) Configuration
# Get these from the X Developer Portal (https://developer.twitter.com/en/portal/dashboard)
X_API_KEY=your_x_api_key_here
X_API_SECRET=your_x_api_secret_here
X_ACCESS_TOKEN=your_x_access_token_here
X_ACCESS_SECRET=your_x_access_token_secret_here

# Logging Configuration
LOG_LEVEL=debug # error, warn, info, debug, or trace
19 changes: 18 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Environment files
.env
.env.*
!.env.example

# Rust
/target
**/*.rs.bk
Cargo.lock

# JetBrains
.idea/
Expand All @@ -11,8 +17,19 @@
# VSCode
.vscode/

# macOS
# IDE
*.swp
*.swo

# Logs
*.log
npm-debug.log*

# OS
.DS_Store
Thumbs.db

# macOS
.AppleDouble
.LSOverride

Expand Down
Loading

0 comments on commit 26fd307

Please sign in to comment.