File: local.inc.example

package info (click to toggle)
gforge 4.5.14-22etch13
  • links: PTS
  • area: main
  • in suites: etch
  • size: 13,004 kB
  • ctags: 11,918
  • sloc: php: 36,047; sql: 29,050; sh: 10,538; perl: 6,496; xml: 3,810; makefile: 341; python: 263; ansic: 256
file content (265 lines) | stat: -rw-r--r-- 8,092 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<?php
// PLEASE DO NOT REMOVE THIS LINE

// GForge Universal Site Modifications
// by David HM Spector <spector@zeitgeist.com>
//
// Really Important Safety Tip: --> DO NOT LEAVE ANY WHITE
// SPACE AFTER THE CLOSING PHP TAG AT THE END OF THIS FILE!
//
// Doing so will really confuse the software and cause
// 1) cookies to fail and 2) HTML page headers to fail
// which will give you some preally hard-to-debug problems.
// Why? PHP is a *pre-processor* -- anything that's not PHP gets
// emitted as part of the HTML stream and processed by the browser,
// so white space is meaningful!
//
//
// GForge hostnames
//
// Hostnames should be fully qualified domain names (FQDNs); using short names
// would be prettier but would stop you from distributing your SourceForge
// implementation across multiple domains.
//
// Of course, if you have a lot of machines serving a particular purpose
// such as FTP or for shell accounts, the "hostname" here might be in
// reality an addr_list of machines that is serviced by a round-robin
// mechanism or something fancy like a local-director.
//
// The default GForge domain
// this is used where ever the "naked" form of the GForge domain
// might be used.  E.g., "mailto:admin@gforge.net"
$sys_default_domain = 'gforge.company.com';
$sys_forum_return_domain = "gforge.company.com";
//$sys_fallback_domain = 'gforge2.company.com';

// Machine used for downloading sources/packages
$sys_download_host = 'download.gforge.company.com';

// Machine(s) that host users' shell accounts
//  N.B. to the SourceForge Crew: What's the difference between the user
// host and the shell host?  They are clearly two different hostnames
// in the source code, but they seem to serve the same purpose..?
$sys_shell_host = 'shell.gforge.company.com';
$sys_users_host = 'users.gforge.company.com';

// Machine that hosts the GForge mailing lists (This could also be
// the mail host if you have enough horsepower & bandwidth)
//$sys_lists_host = 'lists.gforge.company.com';
$sys_lists_host = 'gforge.company.com';

//
// SCM configuration
//

// Machine that hosts SCM
$sys_scm_host = 'cvs.gforge.company.com';
$sys_cvs_host=$sys_scm_host;

// Force the use of a single scm host instead of scm.project.domain.com
// Set to 1 to use scm.domain.com for all projects
// Set to 0 to use scm.project.domain.com
$sys_scm_single_host = 1;

// Path to tarballs directory
$sys_scm_tarballs_path='/var/lib/gforge/scmtarballs';

// Path to snapshots directory
$sys_scm_snapshots_path='/var/lib/gforge/scmsnapshots';

// Path to SCMWEB
$sys_path_to_scmweb='/etc/gforge/';


//Databases, html/php/other paths
//server to use for updates and reads
//If this is null (i.e. ""), then gforge will use Unix sockets to connect
//to the database.
$sys_dbhost='';
$sys_dbname='gforge';
$sys_dbuser='gforge';
// You can also specify a database port if you're using something other than 5432
//$sys_dbport='4242';
$sys_server='pgsql';

//
// Passwords
//
$sys_dbpasswd='';

//
// Account Management
//
// UNIX for classic account management
// LDAP for managing with ldap
// NIS not implemented
$sys_account_manager_type='UNIX';

//
//	FEATURES
//	You can turn features on/off sitewide
//
$sys_use_scm=true;
$sys_use_tracker=true;
$sys_use_forum=true;
$sys_use_pm=true;
$sys_use_docman=true;
$sys_use_news=true;
$sys_use_mail=true;
$sys_use_survey=true;
$sys_use_frs=true;
$sys_use_fti=false;
$sys_use_ftp=false;
$sys_use_trove=true;
$sys_use_snippet=true;
$sys_use_ssl=false;
$sys_use_people=true;
$sys_use_shell=true;

// Enable/Disable the ability to upload files using FTP in FRS
$sys_use_ftpuploads=false;
// Enable/Disable the use of mail gateways for trackers and forums
$sys_use_gateways=true;

// Enable/Disable the ability to add additionnal vhost for a project
$sys_use_project_vhost=false;
// Enable/Disable the ability to have database for a project (backend not implemented)
$sys_use_project_database=false;
// Enable/Disable the ability to add images for a project (frontend not implemented)
$sys_use_project_multimedia=false;

//
//	Restricted project registration
//	If set to true, only a site admin can register projects
//
$sys_project_reg_restricted=false;
//
//	Restricted user registration
//	If set to true, only a site admin can register users
//
$sys_user_reg_restricted=false;

//
// Groups and Homes dir prefix
//
$homedir_prefix='/home';
$groupdir_prefix='/home/groups';
$cvsdir_prefix='/cvsroot';
$svndir_prefix='/var/lib/gforge/svnroot';
$sys_chroot='';

//
// File Upload Configuration
//
// Create a directory, which is writable by your webserver, but not
// within its document root (does not fall under www/ in the tarball)
// Your php.ini file may have to be modified to allow writing outside
// the webserver's directory
//
$sys_upload_dir='/var/lib/gforge/uploads/';
$sys_ftp_upload_dir='/path/to/frs/upload';
$sys_ftp_upload_host='upload.gforge.company.com';
//$sys_ftp_upload_chowner='{ftpuploadchowner}';
$sys_apache_user='apacheuser';
$sys_apache_group='apachegroup';

// Where the GForge files are placed
// *** IMPORTANT: sys_urlroot *MUST* be an ABSOLUTE FILEYSTEM PATH NAME
//             that points to the www directory of the GForge
//             installation.  If you use ANY form of relative path
//             you will break the html_image function in include/html.php
//
$sys_urlroot='/usr/lib/gforge/www/';

// Name of the system as a whole (needed by various utils and titles)
$sys_name='MyGForge';

// Mailman base installation directory
$sys_path_to_mailman='/usr/lib/mailman';

// session cookie settings
//
//	IMPORTANT - YOU MUST CHANGE "foobar" to a long, random number
//
$sys_session_key = 'foobar';
$sys_session_expire = 60 * 60 * 24 * 7;

// Require that user give unique (not yet existent in db) email upon
// registration
$sys_require_unique_email=0;
//
// Require that all email be copied to this address if present
$sys_bcc_all_email_address='';

// GUI modifications (menu colors, etc.)
//	See the top of the file include/html.php, this is where the menu colors
//	and colors used throughout GForge are defined.

// Themeing related vars... Some of this needs to change in the session stuff
// The theme base directory, everything else is handled by theme_sysinit()
$sys_themeroot='/usr/lib/gforge/www/themes/';
// If you want an other default theme or language
$sys_theme='gforge';
$sys_lang='English';
$sys_default_timezone='GMT';
$sys_default_country_code='US';

// Akamization of images
//	example: http://images.gforge.company.com
$sys_images_url='';
$sys_images_secure_url='';

// Groups
//	The GForge permission model is based on groups
//	certain parts of the site, like news, stats, etc
//	are based on special group_id numbers
//	group_id #1 is the super-user group of sitewide admins
$sys_news_group=3;
$sys_stats_group=2;
$sys_peer_rating_group=4;
$sys_template_group=5;
$default_trove_cat=18;

// JPGRAPH Package
$sys_path_to_jpgraph='/usr/lib/jpgraph';

// Show Source
//	Setting this to 1 will add a "Show Source" link to the bottom of each page
$sys_show_source=0;

// Force Login
$sys_force_login=0;

// Place for customized files
$sys_custom_path='/path/to/gforge/etc/custom';


//
// Localization caching Configuration
//

// Enable localization caching system
$sys_localization_enable_caching = true;

// Create a directory, which is writable by your webserver, but not
// within its document root (does not fall under www/ in the tarball)
// Your php.ini file may have to be modified to allow writing outside
// the webserver's directory
$sys_localization_cache_path = '/var/lib/gforge/localizationcache/';

// Enable timestamp checking (if disabled, you have to remove manually cache files on update)
$sys_localization_enable_timestamp_checking = true;
//
// Plugins configuration
//
// Path to plugins directory
$sys_plugins_path='/usr/lib/gforge/plugins/';

// email address to send admin alerts to
$sys_admin_email = 'admin@'.$sys_default_domain;

// Path to sendmail program
//$sys_sendmail_path='/usr/sbin/sendmail';

// End of customizations -- place nothing after the closing PHP tag!
?>