https://github.com/oakstudios/matomo-eb
Matomo on AWS Elastic Beanstalk
https://github.com/oakstudios/matomo-eb
aws elasticbeanstalk matomo
Last synced: 2 months ago
JSON representation
Matomo on AWS Elastic Beanstalk
- Host: GitHub
- URL: https://github.com/oakstudios/matomo-eb
- Owner: oakstudios
- Created: 2021-02-26T21:20:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T19:30:28.000Z (over 3 years ago)
- Last Synced: 2024-12-31T21:42:38.673Z (over 1 year ago)
- Topics: aws, elasticbeanstalk, matomo
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# matomo-eb
[Matomo](https://matomo.org/) on [AWS Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk/).
This repo contains `.ebextensions` and deploy hooks to install and configure Matomo with [DB-IP geolocation database](https://matomo.org/faq/how-to/faq_163/) and [Cron Auto-Archiving](https://matomo.org/docs/setup-auto-archiving/).
## Prerequisites
1. Create a database for Matomo (e.g. RDS or Aurora MySQL).
## Setup
1. Configure non-sensitive variables in `config/config.ini.php`
2. Configure the following environment variables in your Elastic Beanstalk environment (required):
| Name | Example | Description |
| ---- | ------- | ----------- |
| `EMAIL` | `you@example.org` | Used in cron job |
| `URL` | `https://analytics.example.org` | URL to your Matomo domain, used in cron job |
| `MATOMO_DATABASE_HOST` | `xx.rds.amazonaws.com` | Hostname for your Matomo database |
| `MATOMO_DATABASE_USERNAME` | `matomo` | Username for your Matomo database |
| `MATOMO_DATABASE_PASSWORD` | `secret` | Password for your Matomo database |
| `MATOMO_DATABASE_DBNAME` | `matomodb` | Database name for your Matomo database |
| `MATOMO_GENERAL_SALT` | `abc123` | 32 character random string |
| `MATOMO_GENERAL_TRUSTED_HOSTS` | `"analytics.example.org", "xx.elasticbeanstalk.com"` | All allowed Matomo domains, comma-delimited with quotes |
## Contribute
Feel free to fork and improve!