From e28ab8f48c891c03cf4b3a8ed88b98d38a561960 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Dec 2015 13:45:08 +0200 Subject: Separate brep module configuration from Apache server configuration --- etc/dev/config | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 etc/dev/config (limited to 'etc/dev/config') diff --git a/etc/dev/config b/etc/dev/config new file mode 100644 index 0000000..cdd0b53 --- /dev/null +++ b/etc/dev/config @@ -0,0 +1,32 @@ +# Basic settings (used in this file only) +# +SCRIPT_DIR=`dirname $0` +CONFIG_DIR=`cd $SCRIPT_DIR; pwd` +PROJECT_DIR="$CONFIG_DIR/../.." +WORKSPACE_DIR="$PROJECT_DIR/var" +LIB_DIRS="$PROJECT_DIR/brep:$PROJECT_DIR/../libbutl/butl:$PROJECT_DIR/../libbpkg/bpkg" + +# PostgreSQL settings (used in pgctl) +# +PG_PORT=8432 +PG_SCHEMA_DIR="$PROJECT_DIR/brep" +PG_DATA_DIR="$WORKSPACE_DIR/lib/pgsql" +PG_LOG_DIR="$WORKSPACE_DIR/log/pgsql" +PG_WORKSPACE_DIR="$WORKSPACE_DIR/run/pgsql" + +# Apache settings (used in apachectl) +# +AP_PORT=8080 +AP_GLOBAL_SERVER_NAME="localhost" +AP_BREP_SERVER_NAME="dev.cppget.org" +AP_ROOT="/" # Value examples: "/", "/foo/", "/foo/bar/". +AP_LOG_LEVEL=trace1 +AP_DB_HOST="$PG_WORKSPACE_DIR" +AP_DB_PORT=$PG_PORT +AP_LIB_DIRS="$LIB_DIRS" +AP_MODULE_DIR="$PROJECT_DIR/brep" +AP_WWW_DIR="$PROJECT_DIR/www" +AP_CONFIG_DIR="$CONFIG_DIR" +AP_LOG_DIR="$WORKSPACE_DIR/log/httpd" +AP_WORKSPACE_DIR="$WORKSPACE_DIR/run/httpd" +AP_REPOSITORY_DIR="$WORKSPACE_DIR/www" -- cgit v1.1