add detailed installation instructions

This commit is contained in:
Your Name 2025-10-13 14:23:11 -04:00
parent 61e559ec8c
commit e47ede6bf9

View file

@ -2,8 +2,17 @@
Live demo: https://eternalwinter.xmpub.org/ Live demo: https://eternalwinter.xmpub.org/
Needs php imagemagick & sqlite modules. Needs php imagemagick & sqlite modules.
## Installation ## Installation
Make sure the directory is writable by the web server. * `git clone https://git.xmpub.org/xmpub/EternalWinter`
Run `./password.sh <password>` to generate the moderation password's hash. * `mkdir secrets`
Put a ttf font in the directory and name it `captchafont.ttf` * Make sure the directory is writable by the web server. `chown -R www-data:www-data EternalWinter`
Edit `config.php` to customize. * Run `./password.sh <password>` to generate the moderation password's hash.
To moderate, visit a url and add `?manage=<your password>` to the end of the url * Put a ttf font in the directory and name it `captchafont.ttf`
* Edit `config.php` to customize.
* To moderate, visit a url and add `?manage=<your password>` to the end of the url
IMPORTANT: You need to add a line to your server configuration to block `/secrets/` since it contains sensitive data like the database and your password hash.
* nginx:
```
location /secrets/ {
return 404;
}
```