File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare(strict_types=1);
4
+
5
+ /*
6
+ * Dev matomo instance needs to be manually configured once before enabling the configuration below.
7
+ *
8
+ * 1. Go to http://localhost:8003 and follow the installation instructions.
9
+ * 2. Open data/infra/matomo/config/config.ini.php and replace `trusted_hosts[] = "localhost"` with
10
+ * `trusted_hosts[] = "localhost:8003"` (see https://github.com/matomo-org/matomo/issues/9549)
11
+ * 3. Go to http://localhost:8003/index.php?module=SitesManager&action=index and paste the ID for the site you just
12
+ * created into the `site_id` field below.
13
+ * 4. Go to http://localhost:8003/index.php?module=UsersManager&action=userSecurity, scroll down, click
14
+ * "Create new token" and once generated, paste the token into the `api_token` field below.
15
+ */
16
+
17
+ return [
18
+
19
+ 'matomo' => [
20
+ // 'enabled' => true,
21
+ // 'base_url' => 'http://shlink_matomo',
22
+ // 'site_id' => '...',
23
+ // 'api_token' => '...',
24
+ ],
25
+
26
+ ];
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ services:
211
211
ports :
212
212
- " 8003:80"
213
213
volumes :
214
- # Matomo does not persist port in trusted hosts. This is needed to edit config afterward
214
+ # Matomo does not persist port in trusted hosts. This volume is needed to edit config afterward
215
215
# https://github.com/matomo-org/matomo/issues/9549
216
216
- ./data/infra/matomo:/var/www/html
217
217
links :
You can’t perform that action at this time.
0 commit comments