DE EN EN (Google)

Configuration Variables

Paths on this page refer to paths inside of the container easydb-eas, unless stated otherwise. For configuration outside of the container, see here.

The configuration file of the easydb asset server is under /etc/opt/easydb/eas/easydb-asset-server.conf.

Settings for the start and the environment of the EAS are in /etc/default/easydb-asset-server.

System Settings

Number of workers

EAS_NUM_WORKERS

The EAS can simultaneously start several so-called worker processes The resources available. It should however no more Worker started when the server has processor cores, still better Less to leave the EAS service and easydb enough resources.

Worker processes are for the actual calculation of the Preview versions and other potentially time - intensive work like the Create ZIPs and PowerPoint presentations.

EAS_NUM_WORKERS = 1

The variable “EAS_NUM_SOFFICE” (below) must always be set to a higher value Value as EAS_NUM_WORKERS.

Number of EAS service processes (as of version 4.2)

EAS_NUM_SERVICES

The service processes accept requests from the easydb and Answer these either directly or create work assignments for the Worker processes in the queue. There should always be sufficient Service processes are available, since otherwise the interaction With which easydb is blocked. For many installation is the Default value of 5 is sufficient, especially since connections are rejected, If the number of simultaneous connections is a certain limit (3 × n + 10).

EAS_NUM_SERVICES = 5

FastCGI socket for EAS service (from version 4.2)

EAS_FCGI_SOCKET

EAS_FCGI_SOCKET =/var/run/EasyDB/fcgi-socket

Number of OpenOffice.org services (as of version 4.2)

EAS_NUM_SOFFICE

EAS_NUM_SOFFICE = 2

Baseport for OpenOffice.org Services (from version 4.2)

EAS_SOFFICE_BASEPORT

EAS_SOFFICE_BASEPORT = 2002

user configuration

EAS_EUID

EAS_EGID

The EAS worker changes its user and group when starting To fulfill the tasks with fewer rights. Currently, the Same users, with which also the EAS service, thus the Apache web server is running. In Debian, the user is using www-data The group www-data, UID and GID are33.

EAS_EUID = 33
EAS_EGID = 33

Database Configuration

EAS_PG_DSN

The DSN (Data Source Name) determines the connection to the PostgreSQL database. The following values ​​are possible (blank separated):

EAS_PG_DSN = host =/var/run/postgresql port = 5432 user = postgres dbname = easydb

directory settings

Restrictions of source directories

EAS_SAFE_PATHS

Here, you can restrict from which lists the EAS Assets. For safety reasons this Attitude must be as restrictive as possible, but must be on everyone If the upload directory of the easydb (a PHP setting) are included.

EAS_SAFE_PATHS =/var/home:/tmp

Log directory

EAS_LOG_DIR

All messages from the EAS are stored in this directory. Should Very early warning messages and errors, these can also be in /tmp.

EAS_LOG_DIR =/var/opt/EasyDB/log/eas

Runtime data directory

EAS_VAR_DIR

In this directory, the EAS worker places status information and PID files.

EAS_VAR_DIR =/var/run/EasyDB

Directory for temporary files

EAS_TMP_DIR

Below this directory, temporary files are created at the Creation of versions are required. The default is / Tmp, a directory is created for each task and Deleted after completion.

# EAS_TMP_DIR =/tmp

Directory for temporary files of the zoomer (as of EAS 4.2.36)

EAS_ZOOMER_TMP_DIR

The easydb zoomer temporarily stores uncompressed images for quick access. This is usually done in a directory named “zoomer” in the temporary directory (“/ tmp” or EAS_TMP_DIR). In this directory, Janitor is automatically cleared, so it should be used exclusively for this purpose.

EAS_ZOOMER_TMP_DIR =/var/tmp/zoomer-eas

Base directory for partitions

EAS_PARTITION_BASE_DIR

This directory contains symbolic links to the actual EAS partition directories. The links are determined by the database ID of the partition and managed by the EAS worker. A common directory is necessary to limit the configuration effort since the Apache must deliver the files in the individual partitions and they are not individually known to the web server.

EAS_PARTITION_BASE_DIR =/var/opt/EasyDB/lib/eas/partitions

Minimum size for partitions

EAS_PARTITION_MIN_FREE

If the EAS determines that the minimum size in bytes on an EAS partition is not reached, it is deactivated. The default value is 1 gigabyte.

# EAS_PARTITION_MIN_FREE = 1073741824

Code Directory

EAS_EXEC_DIR

The code from this directory is running. Normally this setting should not be changed.

EAS_EXEC_DIR =/opt/EasyDB/eas

Automatic EAS migration

EAS_MIGRATE_ASSETS

EAS_ORIGINAL_STORE

EAS_VERSIONS_STORE

The EAS can migrate assets of the old, file-based type during access to the database. This allows a gradual conversion to the new system. By default, however, this behavior is disabled, since many requests for non-existent assets may result in performance degradation.

# EAS_MIGRATE_ASSETS = 1
# EAS_ORIGINAL_STORE =/home/eas40/orig
# EAS_VERSIONS_STORE =/home/eas40/dest

E-mail configuration

EAS_EMAIL_SMTP_SERVER

EAS_EMAIL_FROM_ADDRESS

EAS_EMAIL_ENVELOPE_SENDER

A working SMTP server is necessary for the e-mail transmission of assets. Currently, the server name and the From: address of the outgoing emails can be configured.

EAS_EMAIL_SMTP_SERVER = localhost
EAS_EMAIL_FROM_ADDRESS = root@localhost

In addition, the envelope transmitter address can also be specified from EAS 4.2.30. If this is not set, EAS_EMAIL_FROM_ADDRESS is used.

EAS_EMAIL_ENVELOPE_SENDER=admin@example.com

Zoomer configuration (from EAS 4.2.36)

The EAS includes a new implementation for the zoomer from version 4.2.36.

Janitor settings of the zoomer

EAS_ZOOMER_MAX_CACHE_TIME

EAS_ZOOMER_MIN_FREE_SPACE

The EAS-Janitor periodically clears the temporary files of the zoomer (See also EAS_ZOOMER_TMP_DIR). Some parameters can be applied to the Resources:

The maximum age of temporary files, the default is here Hour.

EAS_ZOOMER_MAX_CACHE_TIME = 2D

The following suffixes for time units can be used: (Seconds), m (minutes), h (hours), D (days).

In addition, the oldest temporary files are deleted until the Available space on the drive again reaches a certain value, if necessary. The default is a GB.

EAS_ZOOMER_MIN_FREE_SPACE = 24G

Available suffixes are K, M, G, T for the corresponding Multipliers for bytes (1K stands for 1024 bytes).

Since the Janitor runs only every 60 minutes, it can still That the available space is undercut, the temporary place And the memory limit should therefore be generously dimensioned.

Other parameters

EAS_JANITOR

The cleanup process of the EAS can be disabled by default This active. The following option must be set:

EAS_JANITOR = false

EAS_JSON_INDENT

The data exchange format of the EAS is mainly JSON (JavaScript Object Notation). If this option is active (the Default), the data will be formatted, more readable Shape.

EAS_JSON_INDENT = 1

EAS_EXIFTOOL_PATH

Exiftool is a central component for metadata treatment needed. Because the distribution version of this software is too old, The easydb provides a newer version whose path is configured here. Normally this setting should not be changed.

EAS_EXIFTOOL_PATH =/opt/easydb/common/exiftool/exiftool 

EAS_CONVERT_LIMIT_*

For ImageMagick calls, various restrictions can be specified with EAS_CONVERT_LIMIT_ * (see ImageMagick-Documentation zu -limit), zB:

EAS_CONVERT_LIMIT_THREAD = 1 
EAS_CONVERT_LIMIT_MAP = 512MB

EAS_SOFFICE_MAX_WAIT

(from EAS 4.2.48.7) Maximum wait time Office processes in seconds. The default is 30 minutes. When the time has elapsed, all Office processes are aborted and restarted.

EAS_SOFFICE_MAX_WAIT = 900 

 

The paths refer to paths in the container, not to paths directly on your server that is running the docker container.