Ignore:
Timestamp:
28/05/10 14:23:27 (10 years ago)
Author:
astephen
Message:

various updates. Key thing to add next is polling of jobs and update of
response when it has polled correctly. Can re-use jquery stuff in
submit_utils.js which is relatively lightweight.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/config.ini

    r5615 r6903  
    1010smtp_server = localhost 
    1111error_email_from = paste@localhost 
     12securityConfigDir = %(here)s/../../ndg-security/etc 
     13beakerSessionKeyName = beaker.session.ndg.security 
     14authKitCookieSecret = MmUd8maSweeYsXkuwzzEK2vjq5pAqappeCZ74ZQ4OwU 
     15 
     16[pipeline:main] 
     17pipeline = BeakerSessionFilter  
     18           AuthenticationFilter  
     19           AuthorizationFilter  
     20           wpsApp 
    1221 
    1322############################################################################## 
     
    2332# Main WSGI application section 
    2433 
    25 [app:main] 
     34[app:wpsApp] 
    2635use = egg:cows_wps 
    2736full_stack = true 
    2837cache_dir = %(here)s/data 
     38 
    2939 
    3040# If behind a proxy uncomment this and edit the filter:proxy-prefix section 
     
    4252#!NOTE: wps.logs_dir is removed.  Use logging config section below 
    4353 
     54wps.template_dir = %(here)s/cows_wps/templates 
     55 
    4456# Directory where process output directories are stored.  Needs to be shared 
    4557# across all nodes under the same path 
    46 wps.proc_output_dir = %(here)s/proc_outputs 
     58#wps.proc_output_dir = %(here)s/proc_outputs 
     59wps.proc_output_dir = /disks/kona1/wps/proc_outputs 
    4760 
    4861# Place where config initialisation files are stored.  Theoretically doesn't 
    4962# need to be visible to execute hosts but some processes might rely on it. 
    50 wps.proc_config_dir = %(here)s/configs 
     63wps.proc_config_dir = %(here)s/process_configs 
    5164 
    5265# Metadata output options 
    5366wps.max_len_metadata_line = 42 
    5467 
    55 # Initiation file for the process output rules 
     68# Initiation file for the process output rules and user roles 
    5669wps.outputs_rules = %(here)s/outputs_rules.ini 
     70wps.roles_ini = %(here)s/user_roles.ini 
    5771 
    5872# Database backend options 
    5973#wps.database_url = sqlite:///:memory: 
    60 wps.database_url = sqlite:///%(here)s/wps.db 
     74#wps.database_url = sqlite:////tmp/cows_wps_ag.db 
     75wps.database_url = postgresql://ceda_wps:wasp_ced@bora/ceda_wps_test 
    6176 
    6277 
     
    7085wps.max_s_proc = 2 
    7186wps.sge_queue_timeout = 30 
    72 wps.runproc_path = %(here)s/bin/wps_runproc 
     87wps.runproc_path = %(here)s/../buildout/bin/wps_runproc 
    7388 
    7489# Nappy configuration 
     
    8398# Extra stuff needed for mod_wsgi and new in the codebase 
    8499#!TODO: tidy this up 
    85 wps.user = ddp 
     100wps.user = cwps 
    86101wps.mpl_configdir = /disks/cache/wps/.matplotlib 
    87102wps.worker_pool = 5 
     
    95110wps.notify_email_from = no-reply@ukcp09-ui.defra.gov.uk 
    96111wps.mailhost = localhost 
    97 wps.ukcp_helpdesk_url = http://ukclimateprojections.defra.gov.uk/content/view/518/681/helpdesk.php 
     112#wps.ukcp_helpdesk_url = http://ukclimateprojections.defra.gov.uk/content/view/518/681/helpdesk.php 
    98113wps.ui_url_to_jobs_page = http://ukclimateprojections-ui.defra.gov.uk/ui/outputs/jobs.php 
    99114 
     
    126141 
    127142 
     143[filter:BeakerSessionFilter] 
     144paste.filter_app_factory = beaker.middleware:SessionMiddleware 
     145 
     146# Cookie name 
     147beaker.session.key = ndg.security.session 
     148 
     149# WSGI environ key name 
     150environ_key = %(beakerSessionKeyName)s 
     151beaker.session.secret = rBIvKXLa+REYB8pM/8pdPoorVpKQuaOW 
     152beaker.cache.data_dir = %(here)s/authn/beaker/cache 
     153beaker.session.data_dir = %(here)s/authn/beaker/sessions 
     154 
     155 
     156[filter:AuthenticationFilter] 
     157paste.filter_app_factory = ndg.security.server.wsgi.authn:AuthenticationMiddleware 
     158prefix = authN. 
     159 
     160# Set redirect for OpenID Relying Party in the Security Services app instance 
     161authN.redirectURI = https://ceda-wps1.badc.rl.ac.uk/verify 
     162 
     163# AuthKit Set-up 
     164authkit.setup.method=cookie 
     165 
     166# This cookie name and secret MUST agree with the name used by the security web 
     167# services app 
     168authkit.cookie.name=ndg.security.auth 
     169authkit.cookie.secret=%(authKitCookieSecret)s 
     170authkit.cookie.signoutpath = /logout 
     171 
     172# Disable inclusion of client IP address from cookie signature due to  
     173# suspected problem with AuthKit setting it when a HTTP Proxy is in place 
     174authkit.cookie.includeip = False 
     175 
     176# environ key name for beaker session 
     177authkit.session.middleware = %(beakerSessionKeyName)s 
     178 
     179[filter:AuthorizationFilter] 
     180paste.filter_app_factory=ndg.security.server.wsgi.authz:SAMLAuthorizationMiddleware.filter_app_factory 
     181prefix = authz. 
     182authz.pepResultHandler = ndg.security.server.wsgi.authz.result_handler.genshi.GenshiPEPResultHandlerMiddleware 
     183authz.pepResultHandler.staticContentDir = %(here)s/ndg-security/pep_result_handler 
     184authz.pepResultHandler.baseURL = http://ceda-wps1.badc.rl.ac.uk 
     185authz.pepResultHandler.heading = Access Denied 
     186authz.pepResultHandler.messageTemplate = Access is forbidden for this resource:<div id="accessDeniedMessage">$pdpResponseMsg</div>Please check with your site administrator that you have the required access privileges. 
     187authz.pepResultHandler.footerText = This site is for test purposes only. 
     188authz.pepResultHandler.rightLink = http://ceda.ac.uk/ 
     189authz.pepResultHandler.rightImage = %(authz.pepResultHandler.baseURL)s/layout/CEDA_RightButton60.png 
     190authz.pepResultHandler.rightAlt = Centre for Environmental Data Archival 
     191authz.pepResultHandler.helpIcon = %(authz.pepResultHandler.baseURL)s/layout/icons/help.png 
     192 
     193policy.filePath = %(here)s/ndg-security/policy.xml 
     194 
     195# Settings for Policy Information Point used by the Policy Decision Point to 
     196# retrieve subject attributes from the Attribute Authority associated with the 
     197# resource to be accessed 
     198 
     199# If omitted, DN of SSL Cert is used 
     200pip.attributeQuery.issuerName =  
     201pip.attributeQuery.clockSkew = 0.5 
     202 
     203# Specify what type of attributes you want to query the Attribute Authority for 
     204pip.attributeQuery.queryAttributes.0 = urn:ceda:security:authz:1.0:attr, , http://www.w3.org/2001/XMLSchema#string 
     205 
     206# Verify the Attribute Authority's SSL certificate against this trust root 
     207pip.attributeQuery.sslCACertDir=%(securityConfigDir)s/pki/ca 
     208 
     209# Pass a certificate in the SSL call so that the Attribute Authority can authenticate this request 
     210pip.attributeQuery.sslCertFilePath=%(here)s/ndg-security/pki/ceda-wps1.badc.rl.ac.uk.pip.crt 
     211pip.attributeQuery.sslPriKeyFilePath=%(here)s/ndg-security/pki/ceda-wps1.badc.rl.ac.uk.pip.key 
     212 
    128213 
    129214############################################################################# 
    130215# Logging configuration 
    131216[loggers] 
    132 keys = root, cows_wps 
     217keys = root, cows_wps, ndg, saml 
    133218 
    134219[handlers] 
     
    146231handlers = 
    147232qualname = cows_wps 
     233 
     234[logger_ndg] 
     235level = DEBUG 
     236handlers = 
     237qualname = ndg 
     238 
     239[logger_saml] 
     240level = DEBUG 
     241handlers = 
     242qualname = saml 
    148243 
    149244[handler_console] 
     
    154249 
    155250[formatter_generic] 
    156 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s 
    157 datefmt = %H:%M:%S 
     251format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s:%(lineno)s] %(message)s 
     252datefmt = %Y-%m-%d-%H:%M:%S 
Note: See TracChangeset for help on using the changeset viewer.