PageRenderTime 30ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/backup/frontend.in.sv.gnu.org/etc/savane/savane.conf.pl

#
Perl | 238 lines | 49 code | 41 blank | 148 comment | 0 complexity | e1da4ed21759f6d98c505f80bc3ea9fd MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0
  1. #!/usr/bin/perl
  2. # This file is part of the Savane project
  3. # <http://gna.org/projects/savane/>
  4. #
  5. # : sv_update_conf.pl,v 1.22 2004/02/14 19:28:55 yeupou Exp
  6. # Savannah Site Configuration:
  7. # Configuration file for a Savannah server
  8. #
  9. # This file has been generated by sv_update_conf
  10. # If you modify it, run sv_update_conf --update
  11. # to update the PHP version of this file.
  12. # You can recreate this file using sv_update_conf --recreate
  13. # with ease.
  14. # Ex: sv_update_conf --conffile=/etc/savane/gnu-conf/savannah.conf --update
  15. # sv_update_conf --conffile=/etc/savane/gnu-conf/savannah.conf --recreate
  16. #
  17. # IMPORTANT SECURITY NOTE.
  18. # Configuration files should be rwx-only for root and apache's
  19. # user (usually "www-data" on Debian GNU/Linux).
  20. # So the owner should be apache's user.
  21. # - there is a mysql password
  22. # - these files are executed
  23. # While it offers the incredible advantage to avoid reinventing a boring
  24. # config parser and to permit hackers to create very efficient config
  25. # by using perl/php, if anybody can edit it, anybody can push savannah to
  26. # execute malicious code when looking for it's configuration.
  27. # (But it's like a /etc/profile ... /etc is for admins).
  28. #
  29. # By default:
  30. # Access: (0750/-rwxr-x---)
  31. # Uid: ( 0/root)
  32. # Gid: ( 33/www-data)
  33. use strict;
  34. ## SERVER(S) ##
  35. # Default HTTP domain
  36. # It must be the naked form of the domain
  37. # Ex: "savannah.gnu.org"
  38. our $sys_default_domain="savannah.gnu.org";
  39. # Default HTTPS domain
  40. # It must be the naked form of the domain
  41. # Ex: "savannah.gnu.org", "443"
  42. our $sys_https_host="$sys_default_domain";
  43. our $sys_https_port="443";
  44. # Brother HTTP(s) domain:
  45. # You can run Savannah with two different domain names. You'll be able
  46. # to write a different configuration for each one.
  47. # The two brother/companion sites will share the same database.
  48. # /etc/savannah/savannah.conf.pl is far more important since the default
  49. # access to the database is done using this one.
  50. # Here you can let your savannah installation aware of the existence
  51. # of a brother/companion site, so while people login, it will be allowed
  52. # to them to login on both site in one click.
  53. # If you do not have brother/companion site, comment out.
  54. our $sys_brother_domain="savannah.nongnu.org";
  55. # SQL server:
  56. # Ex: "localhost", "savannah", "mysqluser", "mysqlpasswd"
  57. our $sys_dbhost="10.1.0.101";
  58. #our $sys_dbparams="mysql_socket=/savannah/mysqld/mysqld.sock";
  59. our $sys_dbname="savane";
  60. our $sys_dbuser="savannahscripts";
  61. use File::Basename;
  62. open(IN, '<'.dirname(__FILE__).'/savane.pass');
  63. our $sys_dbpasswd = <IN>;
  64. chomp($sys_dbpasswd);
  65. close(IN);
  66. ## INSTALLATION PATHS ##
  67. # Local dir of the installation of the PHP frontend
  68. # IT MUST BE AN ABSOLUTE PATH NAME
  69. # Ex: "/usr/local/sv/src/savannah/frontend/php"
  70. our $sys_www_topdir="/frontend/php";
  71. # Default web directory - suffix appended to the default domain
  72. # Ex: "/", "/savannah"
  73. our $sys_url_topdir="/";
  74. # Local dir of the site-specific content
  75. # Ex: "/etc/savannah/savannah-content"
  76. our $sys_incdir="/etc/savane/content/gnu-content";
  77. # [BACKEND ONLY]
  78. # Local dir where dumps will be stored etc
  79. # Ex: "/subversions/sv"
  80. # our $sys_miscdir="";
  81. ## GUI ##
  82. # Platform name, server administration project:
  83. # Name of the platform running and unix_group_name of the project
  84. # dedicated of the server administration
  85. # Ex: "Savannah", "savannah",
  86. our $sys_name="Savannah";
  87. our $sys_unix_group_name="administration";
  88. # Default locale and date formatting.
  89. # Ex: "fr_FR", "Y-M-d H:i"
  90. # our $sys_default_locale="";
  91. # If you want to use the default locale formating, comment out
  92. our $sys_datefmt="";
  93. # Frontend look:
  94. # Default theme, logo name and dimensions.
  95. # The engine will search for a file like
  96. # savannah/www/images/$theme.theme/# our $sys_logo_name="";
  97. # Ex: "savannah", "floating.png", "150", "130"
  98. our $sys_themedefault="Savannah";
  99. our $sys_logo_name="floating.png";
  100. our $sys_logo_name_width="148";
  101. our $sys_logo_name_height="125";
  102. ## MAIL, MAILING-LIST ##
  103. # Mail domain, admin mail address, default replyto, mail address list,
  104. # mail aliases:
  105. # Ex: "gnu.org", "savannah-hackers", "nobody", "/etc/email-addresses,"
  106. # "/etc/aliases"
  107. our $sys_mail_domain="gnu.org";
  108. our $sys_mail_admin="savannah-reports-private";
  109. our $sys_mail_replyto="INVALID.NOREPLY";
  110. our $sys_mail_list="/etc/email-addresses";
  111. our $sys_mail_aliases="/etc/aliases";
  112. ## USERS ACCOUNTS ##
  113. # [BACKEND ONLY]
  114. # user* binaries path
  115. # If you do not want to use useradd/usermod/userdel that are in the
  116. # usual PATH but specific ones, you can type here their prefix.
  117. # Otherwise, comment out.
  118. # If you do not know that this setting is about, comment out.
  119. our $sys_userx_prefix="/usr/sbin";
  120. # Provide login through PAM
  121. # (it can be AFS, Kerberos...)
  122. # Ex: "yes", "no"
  123. our $sys_use_pamauth="no";
  124. # Kerberos:
  125. # If you do not know what it is about, you surely don't have to
  126. # deal with a kerberos server, say no here.
  127. # IMPORTANT: this part will be removed, replaced by PAM
  128. # Ex: "no"
  129. our $sys_use_krb5="no";
  130. # [BACKEND ONLY]
  131. # User home directory
  132. # You can safely uncomment all these settings if you do not use
  133. # the savannah backend.
  134. # Ex: "/home"
  135. our $sys_homedir="/home";
  136. # [BACKEND ONLY]
  137. # User home directory subdirs
  138. # Ex: "2" means users will have # our $sys_homedir="";/u/us/user as home.
  139. our $sys_homedir_subdirs="2";
  140. # [BACKEND ONLY]
  141. # User default shell.
  142. # Ex: "/usr/local/bin/cvssh"
  143. # our $sys_shell="";
  144. ## CRONJOBS ##
  145. # [BACKEND ONLY]
  146. # Cron jobs
  147. # If you do not want system to be synchronized with database
  148. # automatically
  149. # on the following topics, by the backend, comment out.
  150. #our $sys_cron_users="yes";
  151. #our $sys_cron_groups="yes";
  152. #our $sys_cron_viewcvs_forbidden="yes";
  153. #our $sys_cron_mail="yes";
  154. #our $sys_cron_mailman="yes";
  155. #our $sys_cron_cleaner="yes";
  156. ## EXTRA FEATURES ##
  157. # [BACKEND ONLY]
  158. # viewcvs ignore list
  159. # If you do not use viewcvs, if you do not want the backend to
  160. # edit that list comment out
  161. our $sys_viewcvs_conffile="/savannah/etc/viewcvs/viewcvs.conf";
  162. # Statistics
  163. # If you do not have webalizer or mrtg, if you do not want comment out.
  164. # our $sys_webalizer_dir="";
  165. # our $sys_webalizer_url="";
  166. # our $sys_mrtg_dir="";
  167. # our $sys_mrtg_url="";
  168. # search via google added to the search module
  169. # our $sys_use_google="";
  170. # local admin doc: path of this path will be made available to site
  171. # admins
  172. # our $sys_localdoc_file="";
  173. ## DEVELOPMENT ##
  174. # Developers of Savannah should probably set this setting on their
  175. # test machine
  176. #our $sys_debug_on="1";
  177. ## WORKAROUNDS ##
  178. # DEPRECATED:
  179. # settings from the original SF code that does not seems usable nor
  180. # usefull. They are needed in order for the PHP frontend to run for now.
  181. our $sys_urlroot="$sys_www_topdir/frontend/php";
  182. our $sys_default_dir="$sys_url_topdir";
  183. our $sys_nglists_domain="$sys_mail_domain";
  184. our $sys_replyto="$sys_mail_replyto";
  185. our $sys_admin_list="$sys_mail_admin";
  186. our $sys_shell_host="$sys_default_domain";
  187. our $sys_users_host="$sys_default_domain";
  188. our $sys_docs_host="$sys_default_domain";
  189. our $sys_dns1_host="$sys_default_domain";
  190. our $sys_dns2_host="$sys_default_domain";
  191. our $sys_lists_host="$sys_default_domain";
  192. our $sys_lists_domain="$sys_nglists_domain";
  193. our $sys_email_adress="$sys_mail_admin\@$sys_mail_domain";
  194. our $sys_server="$sys_default_domain";
  195. # where are themes (original theme system). Shouldnt be modified
  196. our $sys_themeroot="$sys_urlroot/themes/";
  197. # END