Skip to content

ConfigurationEditor

Max S edited this page Mar 22, 2017 · 5 revisions

Editor Configuration

Overview

This page describes the editor configuration variables loaded from the configuration file. The configuration file for the editor is located in "cfg/hweb.cfg"

Note that the configuration file access should be disabled from the outside.

Enabling the variables means setting its value to 1. By default all integer variables have a zero value.

Package- and module-specific configuration variables are described in the articles for these packages and modules.

Configuration file

Configuration variable Description
database.host Database host.
database.lang Language for database strings in tables that should be localized.
database.name Database name.
database.password Database password.
database.port Database port.
database.user Database user.
files.location Location of static web files, images, etc. All snipe.edit.HTML class methods will use that to generate web page.
page.fileTemplatesEnabled If enabled, the block templates will be read from external files located in "tpl/" directory. If disabled, they need to be compiled in as Haxe resources.
project Project name. Will be displayed on top of the web page.
server.host Cache server host.
server.isProduction If enabled, the editor will be marked as being on the production server, disabling parts of functionality. Server status is displayed on top of the web page.
server.port Cache server port.
sns.types Comma-separated list of SNS types supported by the project. Used only during the common stats display.

The database.lang configuration variable is described fully in Editor Localization article.

Clone this wiki locally