Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git
.htaccess
-RewriteEngine On
-
-RewriteCond %{HTTP_USER_AGENT} SemrushBot [NC]
-RewriteRule .* - [F]
-
-RewriteRule ^(git|pages|render)/ - [F]
-
-RewriteCond %{REQUEST_URI} !^/index\.php$
-RewriteCond %{REQUEST_FILENAME} -f
-RewriteRule \.php$ - [F]
-
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteRule ^(.*)$ index.php [QSA,L]
-
-deny from 185.213.83.81
-
INSTALL.md
+# Requirements
+
+Before installing TreeTrek, ensure your server environment meets the necessary software and OS specifications. The application relies on specific versions of PHP, Nginx, and Git to function correctly.
+
+* Linux (Tested on Debian GNU/Linux 6.12.69).
+* nginx (v1.26.3 or compatible).
+* PHP 8.4.16 or higher (using PHP-FPM).
+* Git 2.53.0 or higher
+
+# Installation
+
+To install:
+
+* Download code
+* Configure settings
+* Configure web server routing and security
+* Define display order
+
+Replace placeholder values with the configuration details.
+
+1. Set placeholders:
+ ``` bash
+ export REPO=repo.domain.com
+ export OWNER=username
+ export WEBDIR=/var/www
+ ```
+1. Run:
+ ```bash
+ mkdir -p /var/www/${REPO}
+ cd /var/www/${REPO}
+ git clone [https://repo.autonoma.ca/repo/treetrek](https://repo.autonoma.ca/repo/treetrek)
+ sudo usermod -aG ${OWNER} www-data
+ ```
+1. Edit `${WEBDIR}/${REPO}/Config.php`.
+1. Set `SITE_TITLE`.
+1. Set `REPOS_SUBDIR`.
+1. Save the file.
+1. Edit `${WEBDIR}/${REPO}/order.txt`
+1. Add repositories you want to come first, hide using a hyphen prefix.
+1. Edit nginx configuration file.
+1. Add routing and security rules:
+ ```nginx
+ location ^~ /images/ {
+ allow all;
+ }
+
+ location ~* ^/images/.*\.svg$ {
+ add_header Content-Type image/svg+xml;
+ }
+
+ location ~ ^/(git|pages|render)/ {
+ deny all;
+ return 403;
+ }
+
+ location ^~ /repo/ {
+ try_files $uri $uri/ /index.php?$query_string;
+ }
+
+ location / {
+ try_files $uri $uri/ /index.php?$query_string;
+ }
+
+ location = /index.php {
+ include snippets/fastcgi-php.conf;
+ fastcgi_pass unix:/run/php/php8.4-fpm.sock;
+ }
+
+ location ~ \.php$ {
+ deny all;
+ return 403;
+ }
+ ```
+1. Apply changes:
+ ```bash
+ sudo nginx -t && sudo systemctl reload nginx
+ ```
+
robots.txt
-user-agent: *
-disallow:
-crawl-delay: 60
+user-agent: *
+disallow:
+crawl-delay: 10080
-User-agent: Googlebot
-Disallow: /_mobile/
-Disallow: /*repo=
-Disallow: /*action=
+user-agent: Googlebot
+disallow: /_mobile/
+disallow: /*repo=
+disallow: /*action=
+

Adds installation instructions

Author Dave Jarvis <email>
Date 2026-02-19 00:19:50 GMT-0800
Commit 4bf5f3aec28691a93ab8810afec107232ad4f62f
Parent e6c04b0
Delta 86 lines added, 23 lines removed, 63-line increase