mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 10:03:46 +00:00
Compare commits
1 Commits
zyphlar-pa
...
jb_cpr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a201ff395d |
2
NOTICE
2
NOTICE
@@ -1,6 +1,6 @@
|
|||||||
Copyright 2020 My.com B.V. (Mail.Ru Group)
|
Copyright 2020 My.com B.V. (Mail.Ru Group)
|
||||||
Copyright 2025 Organic Maps Contributors
|
Copyright 2025 Organic Maps Contributors
|
||||||
Copyright 2025 CoMaps Contributors
|
Copyright 2026 CoMaps Contributors
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
© 2025 CoMaps Contributors
|
© 2026 CoMaps Contributors
|
||||||
|
|||||||
@@ -22,26 +22,13 @@ vim /etc/nginx/nginx.conf
|
|||||||
access_log /var/log/nginx/access.log comaps;
|
access_log /var/log/nginx/access.log comaps;
|
||||||
```
|
```
|
||||||
|
|
||||||
if using Apache, try this:
|
|
||||||
|
|
||||||
```
|
|
||||||
LogFormat "0.0.0.0 %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" comaps
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log comaps
|
|
||||||
```
|
|
||||||
|
|
||||||
### set up monitoring:
|
### set up monitoring:
|
||||||
apt install goaccess
|
apt install goaccess
|
||||||
edit /etc/goaccess/goaccess.conf and uncomment:
|
edit /etc/goaccess/goaccess.conf and uncomment time-format %H:%M:%S, date-format %Y-%m-%d, log-format COMBINED
|
||||||
- time-format %H:%M:%S
|
|
||||||
- date-format %d/%b/%Y
|
|
||||||
- log-format COMBINED
|
|
||||||
|
|
||||||
vim /etc/crontab
|
vim /etc/crontab
|
||||||
|
|
||||||
`*/5 * * * * root /usr/bin/goaccess /var/log/nginx/access.log -o /var/www/html/monitor.html`
|
`*/5 * * * * root /usr/bin/goaccess /var/log/nginx/access.log -o /var/www/html/monitor.html`
|
||||||
|
|
||||||
or Apache: `*/5 * * * * root /usr/bin/goaccess /var/log/apache2/access.log -o /var/www/html/monitor.html`
|
|
||||||
|
|
||||||
### set up basic http pages/responses:
|
### set up basic http pages/responses:
|
||||||
cd /var/www/html/
|
cd /var/www/html/
|
||||||
mkdir maps
|
mkdir maps
|
||||||
|
|||||||
Reference in New Issue
Block a user