1
0

精简提交历史记录

This commit is contained in:
okxlin
2023-11-09 19:15:01 +08:00
commit 691aa7aac9
1529 changed files with 800341 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
CONTAINER_NAME="matomo"
PANEL_APP_PORT_HTTP="40077"
DATA_PATH="./data"
PANEL_DB_HOST="127.0.0.1"
PANEL_DB_NAME="matomo"
PANEL_DB_USER="matomo"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"
PANEL_DB_PREFIX="matomo_"

View File

@@ -0,0 +1,68 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
default: mysql
labelEn: Database Service
labelZh: 数据库服务
params:
- envKey: MATOMO_DB_PORT
key: mysql
type: param
value: "3306"
required: true
type: apps
values:
- label: MySQL
value: mysql
- default: matomo
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: matomo
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: matomo
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: matomo_
envKey: PANEL_DB_PREFIX
labelEn: Database prefix
labelZh: 数据库前缀
required: true
type: text
- default: 40077
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data storage folder
labelZh: 数据存放文件夹
required: true
type: text

View File

@@ -0,0 +1,69 @@
upstream php-handler {
server matomo:9000;
}
server {
listen 80;
add_header Referrer-Policy origin; # make sure outgoing links don't show the URL to the Matomo instance
root /var/www/html; # replace with path to your matomo instance
index index.php;
try_files $uri $uri/ =404;
## only allow accessing the following php files
location ~ ^/(index|matomo|piwik|js/index|plugins/HeatmapSessionRecording/configs).php {
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTP_PROXY ""; # prohibit httpoxy: https://httpoxy.org/
fastcgi_pass php-handler;
}
## deny access to all other .php files
location ~* ^.+\.php$ {
deny all;
return 403;
}
## disable all access to the following directories
location ~ /(config|tmp|core|lang) {
deny all;
return 403; # replace with 404 to not show these directories exist
}
location ~ /\.ht {
deny all;
return 403;
}
location ~ js/container_.*_preview\.js$ {
expires off;
add_header Cache-Control 'private, no-cache, no-store';
}
location ~ \.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2|json)$ {
allow all;
## Cache images,CSS,JS and webfonts for an hour
## Increasing the duration may improve the load-time, but may cause old files to show after an Matomo upgrade
expires 1h;
add_header Pragma public;
add_header Cache-Control "public";
}
location ~ /(libs|vendor|plugins|misc/user) {
deny all;
return 403;
}
## properly display textfiles in root directory
location ~/(.*\.md|LEGALNOTICE|LICENSE) {
default_type text/plain;
}
}
# vim: filetype=nginx

View File

@@ -0,0 +1,40 @@
version: '3'
services:
matomo:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- "${DATA_PATH}/web:/var/www/html"
environment:
- MATOMO_DATABASE_HOST=${PANEL_DB_HOST}
- MATOMO_DATABASE_ADAPTER=mysql
- MATOMO_DATABASE_TABLES_PREFIX=${PANEL_DB_PREFIX}
- MATOMO_DATABASE_USERNAME=${PANEL_DB_USER}
- MATOMO_DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD}
- MATOMO_DATABASE_DBNAME=${PANEL_DB_NAME}
- PHP_MEMORY_LIMIT=2048M
image: matomo:4.15.1-fpm-alpine
labels:
createdBy: Apps
matomo-web:
container_name: ${CONTAINER_NAME}-web
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- "${DATA_PATH}/web:/var/www/html:z,ro"
- "./data/matomo.conf:/etc/nginx/conf.d/default.conf:z,ro"
image: nginx:alpine
depends_on:
- matomo
labels:
createdBy: Apps
networks:
1panel-network:
external: true

139
apps/matomo/README.md Normal file
View File

@@ -0,0 +1,139 @@
# 使用说明
当完成部署初始化时,注意需要按照页面提示,
修改`config.ini.php`文件将访问IP/域名加入白名单,或者取消白名单。
文件所在大致路径如下,注意按需修改
```
/opt/1panel/apps/local/matomo/matomo/data/web/config
```
# 原始相关
# Matomo (formerly Piwik) - matomo.org
[![Latest Stable Version](https://poser.pugx.org/matomo/matomo/v/stable)](https://matomo.org/download/)
[![Latest Unstable Version](https://poser.pugx.org/matomo/matomo/v/unstable)](https://builds.matomo.org/)
[![License](https://poser.pugx.org/piwik/piwik/license)](https://matomo.org/free-software/)
## Code Status
[![Matomo Tests](https://github.com/matomo-org/matomo/actions/workflows/matomo-tests.yml/badge.svg)](https://github.com/matomo-org/matomo/actions/workflows/matomo-tests.yml)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/matomo-org/matomo.svg)](http://isitmaintained.com/project/matomo-org/matomo "Percentage of issues still open")
## Description
Matomo is the leading Free/Libre open analytics platform.
Matomo is a full-featured PHP MySQL software program that you download and install on your own webserver.
At the end of the five-minute installation process, you will be given a JavaScript code.
Simply copy and paste this tag on websites you wish to track and access your analytics reports in real-time.
Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in!
## Mission Statement
> « To create, as a community, the leading international open source digital analytics platform, that gives every user full control of their data. »
Or in short:
> « Liberate Web Analytics »
## License
Matomo is released under the GPL v3 (or later) license, see [LICENSE](https://github.com/matomo-org/matomo/blob/5.x-dev/LICENSE).
## Requirements
* PHP 7.2.5 or greater
* MySQL version 5.5 or greater, or MariaDB
* PHP extension pdo and pdo_mysql, or the MySQLi extension
* Matomo is OS / server independent
See https://matomo.org/docs/requirements/.
## Install Matomo
* [Download Matomo](https://matomo.org/download/)
* Upload matomo to your webserver
* Point your browser to the directory
* Follow the steps
* Add the given javascript code to your pages
* (You may also generate fake data to experiment, by enabling the plugin VisitorGenerator)
See https://matomo.org/docs/installation/.
(When using Matomo for development you need to [install Matomo from the Git repository](https://matomo.org/faq/how-to-install/faq_18271/)).
## Free trial
If you do not have a server or don't want to host yourself you can use our Matomo Cloud partner service (21 day free trial): https://matomo.org/start-free-analytics-trial/
## Online Demo
Check out the online demo for Matomo at [demo.matomo.cloud](https://demo.matomo.cloud/).
## Changelog
For the list of all tickets closed in the current and past releases, see [matomo.org/changelog/](https://matomo.org/changelog/). For the list of technical changes in the Matomo platform, see [developer.matomo.org/changelog](https://developer.matomo.org/changelog).
## Get involved!
We believe in liberating Web Analytics, providing a free platform for simple and advanced analytics. Matomo was built by dozens of people like you,
and we need your help to make Matomo better… Why not participate in a useful project today? [Learn how you can contribute to Matomo](https://matomo.org/get-involved).
## Translations
Our translations are managed on [Weblate](https://hosted.weblate.org/engage/matomo/).
[![Translation Status](https://hosted.weblate.org/widgets/matomo/-/horizontal-auto.svg)](https://hosted.weblate.org/engage/matomo/)
## Quality Assurance
The Matomo project uses an ever-expanding comprehensive set of thousands of unit tests and hundreds of automated integration tests, system tests, JavaScript tests, and screenshot UI tests, running on a continuous integration server as part of its software quality assurance. [Learn more](https://developer.matomo.org/guides/tests).
We use [BrowserStack.com](https://www.browserstack.com/) testing tool to help check the Matomo user interface is compatible with many browsers.
## Security
Security is a top priority at Matomo. As potential issues are discovered, we validate, patch and release fixes as quickly as we can. We have a security bug bounty program in place that rewards researchers for finding security issues and disclosing them to us.
[Learn more](https://matomo.org/security/) or check out our [HackerOne program](https://hackerone.com/matomo).
## Support for Matomo
For **Free support**, post a message in our community forums: [forum.matomo.org](https://forum.matomo.org/)
For **Professional paid support**, purchase a Matomo On-Premises Support Plan: [matomo.org/support-plans](https://matomo.org/support-plans/)
## Contact
Website: [matomo.org](https://matomo.org)
About us: [matomo.org/team/](https://matomo.org/team/)
Contact us: [matomo.org/contact/](https://matomo.org/contact/)
## More information
What makes Matomo unique from the competition:
* You own your web analytics data: since Matomo is installed on your server, the data is stored in your own database and you can get all the statistics using the powerful Matomo Analytics API.
* Matomo is a Free Software which can easily be configured to respect your visitors' privacy.
* Modern, easy to use User Interface: you can fully customize your dashboard, drag and drop widgets and more.
* Matomo features are built inside plugins: you can add new features and remove the ones you dont need.
You can build your own web analytics plugins or hire a consultant to have your custom feature built-in Matomo.
* A vibrant international Open community of more than 200,000 active users (tracking even more websites!)
* Advanced Web Analytics capabilities such as E-commerce Tracking, Goal tracking, Campaign tracking,
Custom Variables, Email Reports, Custom Segment Editor, Geo Location, Real-time visits and maps, [and a lot more!](https://matomo.org/feature-overview/)
Documentation and more info on https://matomo.org.
We are together creating the best open analytics platform in the world!

20
apps/matomo/data.yml Normal file
View File

@@ -0,0 +1,20 @@
name: Matomo
tags:
- 工具
title: 开源的网站分析应用程序
type: 工具
description: 开源的网站分析应用程序
additionalProperties:
key: matomo
name: Matomo
tags:
- Tool
shortDescZh: 开源的网站分析应用程序
shortDescEn: Liberating Web Analytics
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://matomo.org/
github: https://github.com/matomo-org/matomo
document: https://matomo.org/docs

View File

@@ -0,0 +1,8 @@
CONTAINER_NAME="matomo"
PANEL_APP_PORT_HTTP="40077"
DATA_PATH="./data"
PANEL_DB_HOST="127.0.0.1"
PANEL_DB_NAME="matomo"
PANEL_DB_USER="matomo"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"
PANEL_DB_PREFIX="matomo_"

View File

@@ -0,0 +1,68 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
default: mysql
labelEn: Database Service
labelZh: 数据库服务
params:
- envKey: MATOMO_DB_PORT
key: mysql
type: param
value: "3306"
required: true
type: apps
values:
- label: MySQL
value: mysql
- default: matomo
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: matomo
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: matomo
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: matomo_
envKey: PANEL_DB_PREFIX
labelEn: Database prefix
labelZh: 数据库前缀
required: true
type: text
- default: 40077
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data storage folder
labelZh: 数据存放文件夹
required: true
type: text

View File

@@ -0,0 +1,69 @@
upstream php-handler {
server matomo:9000;
}
server {
listen 80;
add_header Referrer-Policy origin; # make sure outgoing links don't show the URL to the Matomo instance
root /var/www/html; # replace with path to your matomo instance
index index.php;
try_files $uri $uri/ =404;
## only allow accessing the following php files
location ~ ^/(index|matomo|piwik|js/index|plugins/HeatmapSessionRecording/configs).php {
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTP_PROXY ""; # prohibit httpoxy: https://httpoxy.org/
fastcgi_pass php-handler;
}
## deny access to all other .php files
location ~* ^.+\.php$ {
deny all;
return 403;
}
## disable all access to the following directories
location ~ /(config|tmp|core|lang) {
deny all;
return 403; # replace with 404 to not show these directories exist
}
location ~ /\.ht {
deny all;
return 403;
}
location ~ js/container_.*_preview\.js$ {
expires off;
add_header Cache-Control 'private, no-cache, no-store';
}
location ~ \.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2|json)$ {
allow all;
## Cache images,CSS,JS and webfonts for an hour
## Increasing the duration may improve the load-time, but may cause old files to show after an Matomo upgrade
expires 1h;
add_header Pragma public;
add_header Cache-Control "public";
}
location ~ /(libs|vendor|plugins|misc/user) {
deny all;
return 403;
}
## properly display textfiles in root directory
location ~/(.*\.md|LEGALNOTICE|LICENSE) {
default_type text/plain;
}
}
# vim: filetype=nginx

View File

@@ -0,0 +1,40 @@
version: '3'
services:
matomo:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- "${DATA_PATH}/web:/var/www/html"
environment:
- MATOMO_DATABASE_HOST=${PANEL_DB_HOST}
- MATOMO_DATABASE_ADAPTER=mysql
- MATOMO_DATABASE_TABLES_PREFIX=${PANEL_DB_PREFIX}
- MATOMO_DATABASE_USERNAME=${PANEL_DB_USER}
- MATOMO_DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD}
- MATOMO_DATABASE_DBNAME=${PANEL_DB_NAME}
- PHP_MEMORY_LIMIT=2048M
image: matomo:fpm-alpine
labels:
createdBy: Apps
matomo-web:
container_name: ${CONTAINER_NAME}-web
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- "${DATA_PATH}/web:/var/www/html:z,ro"
- "./data/matomo.conf:/etc/nginx/conf.d/default.conf:z,ro"
image: nginx:alpine
depends_on:
- matomo
labels:
createdBy: Apps
networks:
1panel-network:
external: true

BIN
apps/matomo/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB