-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Martin Polanka edited this page May 12, 2017
·
2 revisions
Example configuration file is located in app/config/config.local.example.neon
. Local configuration has to be located in app/config/config.local.neon
and filled before first startup of the system. Main configuration file app/config/config.neon
should not be modified!
Description of configurable items, bold ones are required, italics ones are optional.
-
parameters - custom application parameters which can be defined within Nette configuration
-
payment - configuration concerning payment gateway options and some general parameters
- publicAccessToken - access token used for "authentication" from external services which uses CUK payment gateway implementation
- currency - Number according to ISO 4217 specification Example: 203=CZK 978=EUR 840=USD 941=RSD 703=SKK 440=LTL 233=EEK 643=RUB 891=YUM
- language - two character description of language in which payment gateway should be displayed
-
ecomm - configuration concerning Ecomm payment gateway implementation
- server_url - address of the remote payment gateway API server
- client_url - address of the payment gateway client where payments should be redirected
- cert_path - local path to certificate file
- cert_pass - password to certificate
-
services - defines custom services which can use payment gateway implementation in CUK
-
{name of the service} - unique identifier of the service which is used for service identification
- transactionParamId - key value of the transaction ID query parameter
- errorParamId - key value of the error query parameter
- okRedirectionUrl - if transaction was successful and originated from this service, user will be redirected to this address
- failRedirectionUrl - if transaction failed and originated from this service, user will be redirected to this address
-
{name of the service} - unique identifier of the service which is used for service identification
-
profileImgDir - Folder where profile images of users should be located. Default:
/profiles_img/
-
showroomImgDir - Folder containing images of officers in showroom. Default:
/showroom_img/
-
articlesImgDir - Images uploaded through articles editor will be stored here. Default:
/articles_img/
-
eventImgDir - Uploaded images concerning events will be stored here. Default:
/events_img/
-
itemsPerPage - Number of items on the page if there is pagination present. Default:
50
-
eventImgMaxCount - Maximum number of images which can be uploaded to one event from organizer. Default:
20
-
eventImgNameLength - Images are randomly renamed. This number will determine length of generated string. Default:
20
-
eventImgFileSize - Maximum size of the uploaded files in bytes. Default:
5000000
-
payment - configuration concerning payment gateway options and some general parameters
-
doctrine - doctrine database connection configuration
- host - hostname of the server where database is located
- user - username used to authenticate access to the database
- password - authentication password for database
- dbname - name of the database within database server
parameters:
payment:
publicAccessToken: "token"
currency: 203
language: en
ecomm: # configuration for ecomm merchant
server_url: https://server.url
client_url: https://client.url
cert_path: cert.pem # absolute path
cert_pass: passwd
services:
pret-tnt:
transactionParamId: "transId"
errorParamId: "error"
okRedirectionUrl: https://pret.tnt
failRedirectionUrl: https://pret.tnt
doctrine:
host: localhost
user: root
password:
dbname: ifmsa_cuk
CatUnicornKiller System
Author: Martin Polanka
License: MIT