Edit the rclone conf secret for Codeberg Actions, to deliver maps to i.e. /var/www/html/maps/251231 via a limited user. apt update apt install nginx vim ### set hostname for ssh sanity (will show in console upon next bash launch): vim /etc/hostname hostname cdn-XX-1 ### for SSL: sudo snap install --classic certbot sudo certbot --nginx ### remove IPs from logging on line ~36: vim /etc/nginx/nginx.conf ``` ## # Logging Settings ## log_format comaps '0.0.0.0 - - [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'; access_log /var/log/nginx/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 vim /etc/crontab `*/5 * * * * root /usr/bin/goaccess /var/log/nginx/access.log -o /var/www/html/monitor.html` ### set up basic http pages/responses: cd /var/www/html/ mkdir maps rm index.nginx-debian.html wget https://www.comaps.app/favicon.ico vim robots.txt ``` User-agent: * Disallow: / ``` vim index.html ``` CoMaps CDN

This is a CDN for CoMaps

Resources:

  1. CoMaps subway validator
  2. CoMaps News
  3. Donate
```