Updating documentation

This updates the documentation to add the events tables (activities),
databse config information, and NGINX configuration.  I believe up to
date.
This commit is contained in:
Jigme Datse Yli-Rasku 2024-03-29 20:48:10 -07:00
parent 9508de153e
commit 7c04c4322d
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
type: basic-note
created: 2024-03-29 18:55:00 (1711763700.838)
name: Database-Tables-Events
---
# Database-Tables-Events

View File

@ -0,0 +1,12 @@
---
type: basic-note
created: 2024-03-29 17:29:22 (1711758562.28)
name: Database-config.md
---
# Database Config
This is in `Source/config/config.php` with an example config file included.
The current version of the config file, should be ignored by git. If
you've got a git repository, make sure you're not sharing your
configuration.

48
Planning/NGINX.md Normal file
View File

@ -0,0 +1,48 @@
---
type: basic-note
created: 2024-03-29 19:26:14 (1711765574.297)
name: NGINX
---
# NGINX
We're building this using nginx, and the configuration probably needs a
bit of explanation:
```
server {
listen 80;
server_name discipline.tux4.localnet;
access_log /var/log/nginx/discipline.access_log main;
error_log /var/log/nginx/discipline.error_log info;
root /var/www/discipline;
location / {
include /etc/nginx/fastcgi_params;
# Not sure this is correcct (ie. needed)
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
# this is a little unusual... As designed all calls go through
# the same script.
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_pass 127.0.0.1:9000;
# Not sure this is needed
fastcgi_index index.php;
}
location /static/ {
alias var/www/discipline/static/;
}
location /css/ {
alias /var/www/discipline/css/;
}
}
```
That seems to work. I'm not certain about the favicon (I don't think I
have one actually yet), but the CSS should load