Ignition GO is a general purpose golang library that encapsulates a set of common functionality for a webserver. An example webserver that utilizes Ignition GO is Ignition Fuel.
Ignition GO utilizes a set of environment variables for configuration purposes.
- IGN_SSL_CERT : Path to an SSL certificate file. This is used for local SSL testing and development.
- IGN_SSL_KEY : Path to an SSL key. THis is used for local SSL testing and development
- IGN_DB_USERNAME : Username for the database connection.
- IGN_DB_PASSWORD : Password for the database connection.
- IGN_DB_ADDRESS : URL address for the database server.
- IGN_DB_NAME : Name of the database to use on the database sever.
- IGN_DB_MAX_OPEN_CONNS : Max number of open connections in connections pool. A value <= 0 means unlimited connections.
- IGN_GA_TRACKING_ID : Google Analytics Tracking ID to use. If not set, then GA will not be enabled. The format is UA-XXXX-Y.
- IGN_GA_APP_NAME : Google Analytics Application Name. If not set, then GA will not be enabled.
- IGN_GA_CAT_PREFIX : (optional) A string to use as a prefix to Google Analytics Event Category.
Ignition GO creates a separate test database to prevent data corruption.
This database is named <DB_Name>_test
, where <DB_Name>
is your
application's default database name which is usually equivalent to the
IGN_DB_NAME
environment variable.