Skip to content

Commit

Permalink
change readme
Browse files Browse the repository at this point in the history
  • Loading branch information
neochaner committed Mar 12, 2019
1 parent 856c77f commit a522577
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 63 deletions.
74 changes: 11 additions & 63 deletions README.md
@@ -1,79 +1,27 @@
NEOBOARD
========================================================
Находится в состоянии тестирования! Ждем релиз
![alt text](docs/img/attention.png "Warning")
Project not ready yet, please wait release.


Описание
------------
Neoboard - это анонимная имиджборда, разрабатывается на основе OpenIB, которая является наследником Infinity и vichan.
Сейчас проекты (OpenIB/Infinity/vichan) заброшены и не развиваются. За это время накопилось возможностей/функций требующих реализавции в современном интернет ресурсе.
[Demo : neochan](https://neochan.net/test "Demo")



Установка
Description
------------
Требования:

* Unix or Unix-like OS
* Apache/Nginx
* MySQL
* PHP >= 5.6 (mbstring, apcu, apcu-bc)

Пример установки, ОС Ubuntu16-x64

```
apt-get update & upgrade
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update & upgrade
apt-get install nginx php7.0 php7.0-fpm php7.0-mysql php7.0-mbstring php7.0-apcu php7.0-memcached php7.0-gd mysql-server memcached graphicsmagick gifsicle imagemagick ffmpeg exiftool
```

Создать базу и импортировать данные
```
mysql -uroot -p
CREATE DATABASE neochan
mysql -uroot -p neochan < install.sql
```
Anonymous imageboard, continued development of the infinity engine.


Скопируйте ./inc/secrets.example.php в ./inc/secrets.php
и заполните данные для подключения к базе mysql

```
$config['db']['server'] = 'localhost';
$config['db']['database'] = 'neochan';
$config['db']['prefix'] = '';
$config['db']['user'] = 'root';
$config['db']['password'] = 'password';
$config['timezone'] = 'UTC';
$config['cache']['enabled'] = 'memcached';
```



Генерация страниц
Requirements
------------
Статические страницы (claim.html, boards.html, index.html) нуждаются в постоянной пересборке,
поэтому необходимо добавить эти задачи в crontab

```cron
*/10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php
*/20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");'
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php
```
* Linux like OS
* PHP >= 5.6
* MYSQL / MariaDB
* ffmpeg, memcached (optional: graphicsmagick, gifsicle, imagemagick, exiftool)


Nginx locations
------------
```
location ~ ^/embed/ {
rewrite ^/embed/([\w\d_-]+)/([\w\d_-]+).jpg$ /embed.php?service=$1&id=$2 last;
}
```



Файл main.js пустой по умолчанию, чтобы его создать нужно зайти в админку (site/mod.php логин/пароль admin/password)
Выбрать раздел rebuld и нажать кнопку rebulid

Binary file added docs/img/attention.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a522577

Please sign in to comment.