File: default_settings.py

package info (click to toggle)
papercut 0.9.13-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 396 kB
  • ctags: 496
  • sloc: python: 4,872; xml: 105; sh: 71; makefile: 49; sql: 48
file content (143 lines) | stat: -rw-r--r-- 2,946 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
# Copyright (c) 2002 Joao Prado Maia. See the LICENSE file for more information.
# $Id: settings.py,v 1.18 2004/08/01 01:03:22 jpm Exp $
import time
import sys
import os
import os.path

#
# The following configuration settings should be pretty self-explanatory, but
# please let me know if this is not complete or if more information / examples
# are needed.
#


# what is the maximum number of concurrent connections that should be allowed
max_connections = 20


#
# GENERAL PATH INFORMATION
#

# full path for where Papercut will store the log file
log_path = "/var/log"
# the actual log filename
log_file = os.path.join(log_path, "papercut.log")

# full path for pid file
pid_file = "/var/run/papercut.pid"

#
# HOSTNAME / PORT OF THE SERVER
#

# hostname that Papercut will bind against - unset in order to trigger
# autodetection during start up
nntp_hostname = None
# usually 119, but use 563 for an SSL server
nntp_port = 119

# type of server ('read-only' or 'read-write')
server_type = 'read-write'


#
# NNTP AUTHENTICATION SUPPORT
#

# does the server need authentication ? ('yes' or 'no')
nntp_auth = 'no'
# backend that Papercut will use to authenticate the users
auth_backend = ''
# ONLY needed for phorum_mysql_users auth module
PHP_CRYPT_SALT_LENGTH = 2


#
# CACHE SYSTEM
#

# the cache system may need a lot of diskspace ('yes' or 'no')
nntp_cache = 'no'
# cache expire (in seconds)
nntp_cache_expire = 60 * 60 * 3
# path to where the cached files should be kept
nntp_cache_path = '/var/cache/papercut'


#
# STORAGE MODULE
#

# backend that Papercut will use to get (and store) the actual articles content
#storage_backend = "mbox"

#
# FORWARDING_PROXY STORAGE MODULE OPTIONS
#

# remote nntp server
forward_host = 'news'


#
# PHORUM STORAGE MODULE OPTIONS
#

# full path to the directory where the Phorum configuration files are stored
phorum_settings_path = "/var/www/phorum/phorum_settings"
# the version for the installed copy of Phorum
phorum_version = "3.3.2a"

# database connection variables
dbhost = "localhost"
dbname = "phorum"
dbuser = "root"
dbpass = ""


#
# PHPBB STORAGE MODULE OPTIONS
#

# the prefix for the phpBB tables
phpbb_table_prefix = "phpbb_"


#
# PHPNUKE PHPBB STORAGE MODULE OPTIONS
#

# if you're running PHPNuke, set this for the nuke tables and phpbb_table_prefix
# for the bb tables.
nuke_table_prefix = "nuke_"

# the prefix for the phpBB tables
phpbb_table_prefix = "nuke_bb"


#
# MBOX STORAGE MODULE OPTIONS
#

# the full path for where the mbox files are stored in
mbox_path = "/var/lib/papercut/mboxes"


#
# MAILDIR STORAGE MODULE OPTIONS
#

# the full path for where the mbox files are stored in
maildir_path = "/var/lib/papercut/maildirs"


# helper function to log information
def logEvent(msg):
    f = open(log_file, "a")
    f.write("[%s] %s\n" % (time.strftime("%a %b %d %H:%M:%S %Y",
                                         time.gmtime()), msg))
    f.close()

# vim: et sw=4