mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 10:03:46 +00:00
Compare commits
2 Commits
zyphlar-pa
...
zyphlar-pa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d741fa11e | ||
|
|
114d32317d |
@@ -28,7 +28,13 @@ jobs:
|
|||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: "~"
|
path: "~"
|
||||||
key: cache-${{ github.run_id }}-${{ github.run_attempt }}
|
key: cache-${{ github.run_id }}-${{ github.run_attempt }}}
|
||||||
|
- name: Checkout main repo
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "Cloning $FORGEJO_SERVER_URL/$FORGEJO_REPOSITORY branch $FORGEJO_REF_NAME"
|
||||||
|
cd ~
|
||||||
|
git clone --depth 1 --recurse-submodules --shallow-submodules -b $FORGEJO_REF_NAME --single-branch $FORGEJO_SERVER_URL/$FORGEJO_REPOSITORY.git comaps
|
||||||
- name: Checkout subways repo
|
- name: Checkout subways repo
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -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