openvk/README.md

89 lines
4.3 KiB
Markdown
Raw Permalink Normal View History

2021-12-07 16:02:47 +03:00
# <img align="right" src="https://github.com/openvk/openvk/raw/master/Web/static/img/logo_shadow.png" alt="openvk" title="openvk" width="15%">OpenVK
2021-12-31 08:21:48 +03:00
_[Русский](README_RU.md)_
2021-12-07 16:02:47 +03:00
**OpenVK** is an attempt to create a simple CMS that ~~cosplays~~ imitates old VK. Code provided here is not stable yet.
VKontakte belongs to Pavel Durov and VK Group.
To be honest, we don't even know whether it even works. However, this version is maintained and we will be happy to accept your bugreports [in our bug-tracker](https://github.com/openvk/openvk/projects/1). You should also be able to submit them using [ticketing system](https://openvk.su/support?act=new) (you will need an OVK account for this).
## When's the release?
Please use the master branch, as it has the most changes.
Updating the source code is done with this command: `git pull`
2021-12-07 16:02:47 +03:00
## Instances
* **[openvk.su](https://openvk.su/)**
* [social.fetbuk.ru](http://social.fetbuk.ru/)
* [openvk.zavsc.pw](https://openvk.zavsc.pw/)
2021-12-07 16:02:47 +03:00
## Can I create my own OpenVK instance?
Yes! And you're very welcome to.
2021-12-31 08:21:48 +03:00
2021-12-07 16:02:47 +03:00
However, OVK makes use of Chandler Application Server. This software requires extensions, that may not be provided by your hosting provider (namely, sodium and yaml. this extensions are available on most of ISPManager hostings).
2021-12-31 08:21:48 +03:00
2021-12-07 16:02:47 +03:00
If you want, you can add your instance to the list above so that people can register there.
### Installation procedure
2021-12-31 08:21:48 +03:00
1. Install PHP 7.4, web-server, Composer, Node.js, Yarn and [Chandler](https://github.com/openvk/chandler)
2022-01-26 15:05:12 +03:00
* PHP 8 has **not** yet been tested, so you should not expect it to work.
2021-12-07 16:02:47 +03:00
2. Install [commitcaptcha](https://github.com/openvk/commitcaptcha) and OpenVK as Chandler extensions like this:
2022-01-26 15:05:12 +03:00
```bash
git clone https://github.com/openvk/openvk /path/to/chandler/extensions/available/openvk
2021-12-07 16:02:47 +03:00
git clone https://github.com/openvk/commitcaptcha /path/to/chandler/extensions/available/commitcaptcha
```
2022-01-26 15:05:12 +03:00
2021-12-07 16:02:47 +03:00
3. And enable them:
2022-01-26 15:05:12 +03:00
```bash
2021-12-07 16:02:47 +03:00
ln -s /path/to/chandler/extensions/available/commitcaptcha /path/to/chandler/extensions/enabled/
ln -s /path/to/chandler/extensions/available/openvk /path/to/chandler/extensions/enabled/
```
2022-01-26 15:05:12 +03:00
2022-02-03 08:26:43 +03:00
4. Import `install/init-static-db.sql` to **same database** you installed Chandler to and import all sqls from `install/sqls` to **same database**
2021-12-07 16:02:47 +03:00
5. Import `install/init-event-db.sql` to **separate database**
6. Copy `openvk-example.yml` to `openvk.yml` and change options
7. Run `composer install` in OpenVK directory
8. Move to `Web/static/js` and execute `yarn install`
2021-12-28 17:50:16 +03:00
9. Generate the private and public OpenSSL keys by running `openssl genrsa -out data/private.pem 2048` and `openssl rsa -in data/private.pem -outform PEM -pubout -out data/public.pem` in OpenVK directory
10. Set `openvk` as your root app in `chandler.yml`
2021-12-07 16:02:47 +03:00
Once you are done, you can login as a system administrator on the network itself (no registration required):
2022-01-26 15:05:12 +03:00
2021-12-07 16:23:07 +03:00
* **Login**: `admin@localhost.localdomain6`
* **Password**: `admin`
2022-01-26 15:05:12 +03:00
* It is recommended to change the password before using the built-in account.
2021-12-07 16:02:47 +03:00
Full example installation instruction for CentOS 8 is also available [here](https://docs.openvk.su/openvk_engine/centos8_installation/).
2021-12-07 16:02:47 +03:00
### If my website uses OpenVK, should I publish it's sources?
You are encouraged to do so. We don't enforce this though. You can keep your sources to yourself (unless you distribute your OpenVK distro to other people).
2021-12-31 08:21:48 +03:00
2021-12-07 16:02:47 +03:00
You also not required to publish source texts of your themepacks and plugins.
## Where can I get assistance?
You may reach out to us via:
2022-01-26 15:05:12 +03:00
2021-12-07 16:02:47 +03:00
* [Bug-tracker](https://github.com/openvk/openvk/projects/1)
* [Ticketing system](https://openvk.su/support?act=new)
* Telegram chat: Go to [our channel](https://t.me/openvkenglish) and open discussion in our channel menu.
2021-12-07 16:02:47 +03:00
* [Reddit](https://www.reddit.com/r/openvk/)
* [Discussions](https://github.com/openvk/openvk/discussions)
2022-02-05 18:31:16 +03:00
* Matrix chat: #openvk:matrix.org
2021-12-07 16:02:47 +03:00
2022-02-05 18:31:16 +03:00
**Attention**: bug tracker, telegram and matrix chat are public places. And ticketing system is being served by volunteers. If you need to report something, that shouldn't be immediately disclosed to general public (for instance, vulnerability report), please use contact us directly at this email: **openvk [at] tutanota [dot] com**
2021-12-07 16:02:47 +03:00
<a href="https://codeberg.org/OpenVK/openvk">
<img alt="Get it on Codeberg" src="https://codeberg.org/Codeberg/GetItOnCodeberg/media/branch/main/get-it-on-blue-on-white.png" height="60">
</a>