MoeraOrg / moera-node

Moera node, for issues use: https://github.com/MoeraOrg/moera-issues/issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moera Node

Resources

Installation instructions

  1. As prerequisites, you need to have Java 17+ and PostgreSQL 9.6+ installed. In all major Linux distributions, you can install them from the main package repository.

  2. Create a PostgreSQL user <username> with password <password> and an empty database <dbname> owned by this user (see detailed instructions).

  3. Create a directory <media>, where the server will keep media files.

  4. Go to the source directory.

  5. Create application-dev.yml file with the following content (see details about configuration):

    spring:
      datasource:
        url: jdbc:postgresql:<dbname>?characterEncoding=UTF-8
        username: <username>
        password: <password>
      flyway:
        user: <username>
        password: <password>
    node:
      root-secret: <secret>
      media:
        path: <media>

    <secret> must be a long random string of letters and digits without spaces.

  6. By default, the server runs on port 8081. If you want it to run on a different port, add these lines to the file above:

    server:
      port: <port number>
  7. Execute ./run script.

  8. If you use your own naming server, make sure its location is set correctly in node settings.

About

Moera node, for issues use: https://github.com/MoeraOrg/moera-issues/issues

License:GNU General Public License v3.0


Languages

Language:Java 96.5%Language:PLpgSQL 1.4%Language:HTML 1.1%Language:SCSS 0.8%Language:JavaScript 0.2%Language:Shell 0.0%Language:Batchfile 0.0%