Snapshot của matomo-org/matomo-nginx: 415★. Nginx configuration for running Matomo
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This is a small nginx configuration that should help you get your own Matomo instance running and start collecting your own analytics.
I already know nginx
In this case it should be enough to just take the sites-available/matomo.conf, check if everything is configured as you like it and enable the config.
I want to get started
clone this repostitory or download it as a zip then move its content to /etc/nginx/ (or wherever you store your nginx-config)
read through the sites-available/matomo.conf and modify the settings to fit your use case:
set server_name to the domain(s) of your Matomo instance
set the path to your SSL certificate (I really recommend you to make sure your Matomo instance is only reachable via HTTPS. If you don't have an SSL certificate for your domain yet, check out Let's Encrypt.)
do you want to support old browsers? Then you'll need to modify ssl.conf according to your need. (the Mozilla SSL Config Generator will help you)
replace /var/www/matomo/ with the path to your Matomo instance
configure PHP (this depends on your OS and PHP setup)
if you are using fastcgi (which is probably the case) set fastcgi_pass to the path of your PHP socket file
you can also specify a TCP port
go to the sites-enabled folder of your nginx config directory
enable the Matomo config by creating a symlink: sudo ln -s ../sites-available/matomo.conf
test if there is a syntax error in your config: sudo nginx -t
restart nginx: sudo systemctl restart nginx
If you need to check the legacy nginx Matomo configuration, you can find it here: https://github.com/matomo-org/matomo-nginx/tree/1.0.99
Tips
never use Matomo without HTTPS
make sure you have configured Nginx to only accept modern and secure cryptography
check your website with https://www.ssllabs.com/ssltest/
compare your Nginx config with the "modern" template from https://mozilla.github.io/server-side-tls/ssl-config-generator/
this template is used by default in the ssl.conf file
decide if keeping outdated chiphers and TLS protocolls enabled to be able to track ancient browser is worth the risk of a downgrade attack for all your vistors (and admins)
never support SSLv3 and think about disabling TLSv1 and TLSv1.1
add server_tokens off; to your config to disable the server: nginx header on all requests and the nginx version on error pages
if you have enabled gzip compression (which improves performance greatly), be aware of the BREACH vulnerability
think about enabling the Strict-Transport-Security header, but keep in mind the implications
keep HTTP/2 enabled as it brings performance benifits with many small files (e.g. icons)
You know how to improve this config? Open a pull request or GitHub issue!
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/matomo-org/matomo-nginx là nguồn chính thức.
matomo-org/matomo-nginx có bao nhiêu sao?
matomo-org/matomo-nginx có 415 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/matomo-org/matomo-nginx. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
matomo-org/matomo-nginx có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho matomo-org/matomo-nginx. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
matomo-org/matomo-nginx có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho matomo-org/matomo-nginx. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
matomo-org/matomo-nginx có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho matomo-org/matomo-nginx. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
matomo-org/matomo-nginx còn đang phát triển không?
Commit gần nhất trên matomo-org/matomo-nginx là 2.9 năm trước (theo timestamp GitHub). Repo có 125 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về matomo-nginx?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về matomo-nginx.