source: TI03-DataExtractor/branches/repackaging/server/dxs/configs/server.conf @ 1813

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/repackaging/server/dxs/configs/server.conf@1813
Revision 1813, 8.0 KB checked in by spascoe, 14 years ago (diff)

Changes to configuration. You can now test DXWSInterface by putting
server/dxs/configs/server.conf in your ndg.conf. Change the BASEDIR
definition to point to .../server/dxs and startSession('rod', 'rod1')
should work.

Line 
1#   Copyright (C) 2004 CCLRC & NERC( Natural Environment Research Council ).
2#   This software may be distributed under the terms of the
3#   Q Public License, version 1.0 or later. http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
4
5#
6# serverConfig.py
7# ===============
8#
9# Holds the main configuration details that must be set up in order
10# for a version of the dx to run on a new machine.
11#
12# Each option below is documented to guide the user through setting
13# up the interface.
14#
15# All these global variables are used in various parts of the
16# package. For consistency they are all CAPITALISED.
17
18
19[ndg.dx.server]
20# DEBUG:
21# Set to 1 if you want to be in DEBUG mode. This reports CGI errors
22# directly to the browser.
23DEBUG=1
24
25# RESTRICTED_DATA:
26# Do you want security on (1) or off (0)?
27# Note that there is no in-built security implementation in
28# dx, just a set of hooks under which your security system
29# can be called.
30RESTRICTED_DATA=0
31
32# SECURITY_MODEL:
33# The name of the security model being used. The standard
34# ***and insecure (until you have implemented your local hooks)***
35# version is "basic". NERC DataGrid is "ndg".
36SECURITY_MODEL=basic
37
38# ENABLE_CSML:
39# Switch that is set to 1 if you are running the DX with
40# CSML files (and therefore you have installed the CSML
41# library).
42ENABLE_CSML=0
43
44# PACKAGE_NAME:
45# This will appear as the main title displayed
46# on the web interface.
47PACKAGE_NAME=Data Extractor
48
49# LOCAL_RULES:
50# Do you want local rules switched on or off (1 or 0)?
51# This will apply to any parts of the code where local
52# modifications have been made and wrapped in an if clause.
53LOCAL_RULES=0
54
55# UNRESTRICTED_CREDIT:
56# Flag on whether there are any resource limits applied.
57# Value of 1 means no restrictions.
58UNRESTRICTED_CREDIT=1
59
60# CREDIT_LIMIT:
61# Limit on the number of credits allowed on any job
62CREDIT_LIMIT=2
63
64# TOKEN_VALID_LIFETIME:
65# Period before security token should expire (in seconds)
66# 8 hours
67TOKEN_VALID_LIFETIME=28800
68
69# REGISTRATION_PAGE:
70# For restricted datasets, this is the web page from which users
71# can find registration details.
72REGISTRATION_PAGE=http://yourhost/your_link.html
73
74# REQUEST_SIZE_LIMIT:
75# A limit in the number of Megabytes for any user requests.
76# MB
77REQUEST_SIZE_LIMIT=100
78
79# MAX_FILE_SIZE:
80# A limit on the size of each output file
81# (cannot be greater than REQUEST_SIZE_LIMIT)
82# MB
83MAX_FILE_SIZE=1
84
85#!TODO: implement this somewhere
86#if MAX_FILE_SIZE>REQUEST_SIZE_LIMIT:
87#    MAX_FILE_SIZE=REQUEST_SIZE_LIMIT
88
89# ONE_FILE_PER_TIMESTEP:
90# Sets whether default output should be one file per timestep.
91ONE_FILE_PER_TIMESTEP=0
92
93# TIMING_SCALE_FACTOR:
94# Since every system will run at a different speed this scale
95# factor can be adjusted to improve the estimated duration of
96# requests.
97TIMING_SCALE_FACTOR=0.00001
98
99# ADMIN_MAIL_ADDRESS:
100# The e-mail address of the adminstrator for this version. 
101ADMIN_MAIL_ADDRESS=as56@localhost
102
103# MAIL_SENDER:
104# E-mail address from which to send out user messages
105MAIL_SENDER=badc@rl.ac.uk
106
107# LOCAL_MAIL_HOST:
108# The outgoing mail box address for the host machine.
109# On many systems you can just use "localhost".
110LOCAL_MAIL_HOST=localhost
111
112# ADMIN_NOTIFICATION:
113# Set this to 1 if you want to be notified by e-mail when an error has
114# occurred.
115ADMIN_NOTIFICATION=0
116
117# SOAP_SERVER_PORT:
118# Port over which the Web Service (or first method)  will run.
119SOAP_SERVER_PORT=8406
120
121# BASEDIR:
122# Full path to the main package location.
123# "/usr/local/dxs" is recommended but you can change it as
124# you wish.
125BASEDIR=/research/home/spascoe/host/callisto/svn/dx-repackaging/server/dxs
126
127# OUTPUT_DIR:
128# The full path on the local machine of the output directory.
129# Where you are also using the dxc client package you will
130# normally need to specify a directory visible under the
131# webserver (e.g. /srv/www/htdocs/dx/output) that is the same
132# as the value of OUTPUT_DIR_LOCAL_PATH in the client (dxc)
133# package.
134OUTPUT_DIR=/home/as56/apache/htdocs/dx/output
135
136# OUTPUT_DIR_URL:
137# URL path to output directory.
138OUTPUT_DIR_URL=http://localhost/output
139
140# SESSION_OBJECT_DIR:
141# Location of persistent session objects saved during a session.
142# These are saved as Python module
143SESSION_OBJECT_DIR=%(BASEDIR)s/sessionObjects
144
145# OUTPUT_FILE_USER:
146# Unix owner (user) for output files
147OUTPUT_FILE_USER=as56
148
149# OUTPUT_FILE_GROUP:
150# Unix group for output files
151OUTPUT_FILE_GROUP=users
152
153# OUTPUT_DIR_PERMISSION:
154# Unix permission for access to output directories
155OUTPUT_DIR_PERMISSION=0755
156
157# OUTPUT_FILE_PERMISSION:
158# Unix permission for access to output files
159OUTPUT_FILE_PERMISSION=0644 
160
161# USER_HOMEDIR:
162# Required home directory for CDAT to run.
163# NOTE: This may not be needed for non-graphical applications.
164# However, if you do need it you must copy/create a
165# PCMDI_GRAPHICS sub-directory within this directory in order
166# for CDAT to run.
167USER_HOMEDIR=/var/lib/wwwrun
168
169# TOP_LEVEL:
170# Decides whether the DatasetGroup (standard configuration) is
171# the highest level or Dataset (as required by the NERC DataGrid)
172# is the highest level
173TOP_LEVEL=datasetGroup
174
175# OUTPUT_FORMATS:
176# List of available output formats.
177OUTPUT_FORMATS=NetCDF NASA Ames CSML/NetCDF
178
179#-------------------------------------------------------------------------------
180# The following shouldn't be needed with eggs
181
182# LOCAL_PYTHONPATH:
183# Python list of required directories that need to be added
184# to the PYTHONPATH environment variable to access all parts of
185# CDAT and NUMERIC packages.
186#LOCAL_PYTHONPATH=YOUR_CDAT/lib/python2.4
187#    YOUR_CDAT/lib/python2.4/site-packages
188#    YOUR_CDAT/cdat/lib/python2.4/site-packages/Numeric
189#    YOUR_CDAT/lib/python2.3
190#    YOUR_CDAT/lib/python2.3/site-packages
191#    YOUR_CDAT/cdat/lib/python2.3/site-packages/Numeric
192   
193
194# CDAT_BIN_PATH:
195# The bin directory that holds the cdat executable on your system.
196#CDAT_BIN_PATH="/usr/local/cdat/bin"
197
198# NAPPY_PATH:
199# Location of NAppy package used to generate NASA Ames output
200#NAPPY_PATH="/usr/local/nappy"
201
202# MESSAGE_TO_USERS:
203# A message that will be written at the top of all web pages underneath
204# the main header.
205MESSAGE_TO_USERS=This is a test version of the %(PACKAGE_NAME)s
206    so it may contain bugs. Please contact <A HREF="mailto:%(ADMIN_MAIL_ADDRESS)s">%(ADMIN_MAIL_ADDRESS)s</A>
207    if an error occurs so that we can improve this service.
208
209# PROCESS_LIST_DIR
210# The directory in which the DX should store the list of processes
211# currently running jobs. This directory holds a database that is
212# checked and added to each time another DX job is started. If the
213# user is already running a job then they are told there is no
214# resource currently available to them.
215PROCESS_LIST_DIR=%(BASEDIR)s/processes
216
217# CF_METADATA_GLOBAL_ATTRIBUTES
218# Define a set of core Climate and Forecasts (CF) Metadata Standards
219# for NetCDF compliant global file attributes to put in all files.
220CF_METADATA_GLOBAL_ATTRIBUTES=comments:Created by test data extractor
221
222# MAX_NUM_DATASETS
223# Maximum number of datasets allowed per request
224MAX_NUM_DATASETS=2
225
226# INPUT_DATASETS_FILE:
227# This is the file containing the XML document containing a top-level
228# description of Dataset Groups and Datasets for use with the locally
229# configured version of the DX.
230INPUT_DATASETS_FILE=%(BASEDIR)s/datasets/inputDatasets.xml
231
232# LOG_DIR:
233# Location of log directory.
234LOG_DIR=%(BASEDIR)s/logs
235
236# ERROR_LOG:
237# Location of the error log.
238ERROR_LOG=%(LOG_DIR)s/errors
239
240# REQUEST_LOG:
241# Location of completed request log.
242# Note that requests are only logged if a user has asked to create some
243# data and it has extracted successfully.
244REQUEST_LOG=%(LOG_DIR)s/requests
245
246# FILE_NAME_TEMPLATING:
247# Use output filenames based on the input data.
248# Note: you will need to provide this information in
249# the ingestion of datasets. 0=OFF, 1=ON.
250FILE_NAME_TEMPLATING=1
251
252# RUNNING_DIR:
253# Where forked processes are noted by the server.
254RUNNING_DIR=%(BASEDIR)s/running
255
Note: See TracBrowser for help on using the repository browser.