37 | | Minimal configuration requires only the host and port to be changed in the main service configuration file: `PREFIX/etc/qcg-ntfd.xml`. The complete configuration guide can be found in the `PREFIX/share/qcg-ntf/doc/` directory. |
| 37 | Minimal configuration requires only the host and port to be changed in the main service configuration file: `PREFIX/etc/qcg-ntfd.xml`. Although it is optional, you may also need to setup a database to realize more advanced notification scenarios. |
| 38 | |
| 39 | === Database configuration === |
| 40 | The easiest way to setup QCG-Notification database is use of provided script located in `PREFIX/share/qcg-ntf/tools/` direcotory: |
| 41 | {{{ |
| 42 | #!div style="font-size: 90%" |
| 43 | {{{#!sh |
| 44 | /opt/qcg/share/qcg-ntf/tools/qcg-ntf-install.sh |
| 45 | Welcome to qcg-ntf installation script! |
| 46 | |
| 47 | This script will guide you through process of configuring proper environment |
| 48 | for running the QCG-Notification service. You have to answer few questions regarding |
| 49 | parameters of your database. If you are not sure just press Enter and use the |
| 50 | default values. |
| 51 | |
| 52 | Use local PostgreSQL server? (y/n) [y]: y |
| 53 | Database [qcg_ntf]: |
| 54 | User [qcg_ntf]: |
| 55 | Password [qcg_ntf]: MojeTajneHaslo |
| 56 | Create database? (y/n) [y]: y |
| 57 | Create user? (y/n) [y]: y |
| 58 | |
| 59 | Checking for system user qcg_ntf...OK |
| 60 | Checking whether PostgreSQL server is installed...OK |
| 61 | Checking whether PostgreSQL server is running...OK |
| 62 | |
| 63 | Performing installation |
| 64 | * Creating user qcg_ntf...OK |
| 65 | * Creating database qcg_ntf...OK |
| 66 | * Creating database schema...OK |
| 67 | * Checking for ODBC data source qcg_ntf... |
| 68 | * Installing ODBC data source...OK |
| 69 | |
| 70 | Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user qcg_ntf to |
| 71 | access database qcg_ntf. For instance: |
| 72 | |
| 73 | host qcg_ntf qcg_ntf 127.0.0.1/32 md5 |
| 74 | |
| 75 | and reload Postgres server. |
| 76 | }}} |
| 77 | }}} |
| 78 | |
| 79 | The complete configuration guide can be found in the `PREFIX/share/qcg-ntf/doc/` directory. |