1 # ********************************************************************* 2 # Author: Carlo Strozzi 3 # Copying: GPL 4 # 5 # CSA profile for the 'TypeWriter' CSA application. 6 # 7 # This file should be pointed to by the $CSA environment variable. 8 # ********************************************************************* 9 10 # ********************************************************************* 11 # Load global settings and perform standard setup first. This must be 12 # similar to what is done by CSA.cgi for Web CSA applications. 13 # ********************************************************************* 14 15 if (~ $CSA_VERSION ()) { 16 ~ $CSA_INSTALL () && CSA_INSTALL = /usr/local/csa 17 . $CSA_INSTALL/etc/csa.rc 18 } 19 20 ~ $logname () && logname = `whoami 21 ~ $home () && home = /home/$logname 22 ~ $tmpdir () && tmpdir = /tmp 23 24 # ********************************************************************* 25 # Mandatory stuff START. Any overrides must occur before csaMainlib.rc 26 # is included. 27 # ********************************************************************* 28 29 CSA_ID = tw1 # The single most important thing!!! 30 CSA_ALLOW_USER = www-data 31 CSA_ROOT = $home/.csa/$CSA_ID 32 CSA_FQDN = www.example.com 33 34 # non-SSL stuff. 35 CSA_URL1 = http://$CSA_FQDN/html/$CSA_ID 36 CSA_DOCROOT1 = $HOME/$CSA_FQDN/html/$CSA_ID 37 38 # SSL stuff (defaults to the corresponding non-SSL settings if unset). 39 CSA_URL2 = https://$CSA_FQDN/html/$CSA_ID 40 41 # Local libraries. 42 #CSA_BASELIBS = dblib.rc 43 CSA_CGILIBS = (authlib csaEmaillib weblib)^.rc 44 45 # ********************************************************************* 46 # Mandatory stuff END. 47 # ********************************************************************* 48 49 CSA_RDF_DOC = 1 # useful during development. 50 CSA_RDF_TYP = 0 # turn-off CGI data-typing. 51 52 CSA_SEND_REPORT = 1 # Allow bug reporting. 53 CSA_DEBUG = 0 # 0 = no debug. 54 # 1 = function-call trace. 55 #TZ = UTC 56 57 CSA_AUDIT = 0 # Handle table changes with RCS. 58 # Do not set if CVS is used. 59 60 CSA_LANG_DEFAULT = it # Set default message language. 61 62 path = ($CSA_INSTALL/bin $CSA_ROOT/bin $NOSQL_INSTALL/bin 63 $SWU_INSTALL/bin $home/bin /usr/local/bin /usr/bin /bin) 64 65 CSA_LOCK_VERBOSE = 1 66 SWU_LOCK_SALT = some-secret # This file must be mode 600 !! 67 68 # Relax allowed tags in templates. 69 CSA_TPL_ALLOW = '^(CSA_|TNS_|tpl\.|cgi\.|REMOTE_ADDR|PATH_INFO)' 70 71 CSA_LOGDIR = $CSA_VARDIR/log 72 73 CSA_BUGS_TO = 'csa-debug-NOSPAM@strozzi.it' 74 75 # ********************************************************************* 76 # Auth-related stuff. 77 # ********************************************************************* 78 79 #CSA_AUTH_SSL = 1 # "secure" cookie attribute. 80 81 #CSA_AUTH_DOM = localhost 82 CSA_AUTH_PATH = /cgi-bin/CSA/$CSA_ID/ 83 84 # ********************************************************************* 85 # Load any other config files. 86 # ********************************************************************* 87 88 tns1=() { for (tns1 in $CSA_ROOT/rc.d/*) . $tns1 } 89 90 # ********************************************************************* 91 # Optional initial settings for TNS variables, and CSA variables 92 # set/cleared by the inclusion of csaMainlib.rc. 93 # ********************************************************************* 94 95 # Local values for TNS vars that are needed either by batch scripts 96 # or by _userproc(_O_REQUEST) must be set here. Any other local 97 # customizations can usually be set either here or in the relavant 98 # group+cf file. 99 100 # Where to go if the client presses reload on a PRG result page. 101 TNS_PRG_RELOAD = http://$CSA_FQDN 102 103 #TNS_PAGE_MAXTITLE = 128 104 105 TNS_PING_XREF = true 106 107 # Where to store public attachments, relative to $CSA_DOCROOT/$CSA_LANG 108 TNS_ATTACH_PUBDIR = Server 109 110 # Note: a registered user MUST always belong also in the "user" group, 111 # or template conditionals may not work well. It must always be born 112 # in mind that there are three basic groups from the TW point of view: 113 # "editor", "user" and public". A registered user is precisely a "user", 114 # so the latter string must always be listed, possibly along with any 115 # other locally-defined groups. 116 117 # Uncomment next line(s) to allow self-registration for *any group* 118 # of this wiki/blog. A better approach is to enable it at group+cf 119 # level. 120 121 #TNS_SELFREG_AUTH = user 122 #TNS_SELFREG_AUTOASK = true 123 124 TNS_EMAIL_FROM = 'webmaster-NOSPAM@example.com' 125 126 CSA_STATUS = 0 # This is recommended. 127 128 # ********************************************************************* 129 # End of csa.rc 130 # *********************************************************************