Skip to content

Commit

Permalink
Merge pull request #17 from njoguamos/add-self-hosted-version-instruc…
Browse files Browse the repository at this point in the history
…tions

Update self-hosted instructions
  • Loading branch information
njoguamos authored Apr 7, 2024
2 parents eb70d25 + 4fcedef commit df618ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ Ensure that you have updated your application `.env` with credentials from [Plau
PLAUSIBLE_SITE_ID=
PLAUSIBLE_API_KEY=
#PLAUSIBLE_BASE_URL= <-- (Optional) for self-hosted
```

> *Note* If you are using a self-hosted version of plausible, ensure that you define `PLAUSIBLE_BASE_URL` to point to your custom domain.

## Usage

### 1. Getting Realtime Visitors
Expand Down
2 changes: 1 addition & 1 deletion config/plausible.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
|
*/
'base_url' => env(key: 'PLAUSIBLE_BASE_URL', default: 'https://plausible.io/api/v1/stats'),

/*
|--------------------------------------------------------------------------
| Site ID (Domain)
Expand Down

0 comments on commit df618ef

Please sign in to comment.