mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-30 17:44:07 +00:00
Compare commits
2 Commits
jb_cpr
...
zyphlar-pa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06dfa70468 | ||
|
|
9ae29d08a0 |
2
NOTICE
2
NOTICE
@@ -1,6 +1,6 @@
|
||||
Copyright 2020 My.com B.V. (Mail.Ru Group)
|
||||
Copyright 2025 Organic Maps Contributors
|
||||
Copyright 2026 CoMaps Contributors
|
||||
Copyright 2025 CoMaps Contributors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1 +1 @@
|
||||
© 2026 CoMaps Contributors
|
||||
© 2025 CoMaps Contributors
|
||||
|
||||
@@ -22,13 +22,26 @@ vim /etc/nginx/nginx.conf
|
||||
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:
|
||||
apt install goaccess
|
||||
edit /etc/goaccess/goaccess.conf and uncomment time-format %H:%M:%S, date-format %Y-%m-%d, log-format COMBINED
|
||||
edit /etc/goaccess/goaccess.conf and uncomment:
|
||||
- time-format %H:%M:%S
|
||||
- date-format %d/%b/%Y
|
||||
- log-format COMBINED
|
||||
|
||||
vim /etc/crontab
|
||||
|
||||
`*/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:
|
||||
cd /var/www/html/
|
||||
mkdir maps
|
||||
|
||||
Reference in New Issue
Block a user