aboutsummaryrefslogtreecommitdiff
path: root/etc/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-01 15:17:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-17 19:08:52 +0200
commit2fda89944fa528e05c9f6b4fdcd684f2606582a8 (patch)
treeeca5e9c84e2673c8e3bfd38101a398d928bef671 /etc/config
parent1a1d291b1e8e33888013a05302a0de3511f0251a (diff)
Create brep services controlling scripts
Diffstat (limited to 'etc/config')
-rw-r--r--etc/config25
1 files changed, 25 insertions, 0 deletions
diff --git a/etc/config b/etc/config
new file mode 100644
index 0000000..a1e851c
--- /dev/null
+++ b/etc/config
@@ -0,0 +1,25 @@
+# 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"
+
+# PostgreSQL settings (used in pgctl)
+PG_PORT=8432
+PG_DATA_DIR="$WORKSPACE_DIR/lib/pgsql"
+PG_SOCKET_DIR="$WORKSPACE_DIR/run/pgsql"
+PG_LOG_DIR="$WORKSPACE_DIR/log/pgsql"
+PG_OUT_FILE="$WORKSPACE_DIR/run/pgsql/out"
+
+# Apache settings (used in apachectl)
+AP_PORT=8080
+AP_SERVER_NAME="cppget.org:$AP_PORT"
+AP_ADMIN_EMAIL=admin@cppget.org
+AP_LOG_LEVEL=trace1
+AP_DB_HOST="$PG_SOCKET_DIR"
+AP_DB_PORT=$PG_PORT
+AP_MODULE_DIR="$PROJECT_DIR"
+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"