-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathsaku.ini
More file actions
150 lines (117 loc) · 3.45 KB
/
Copy pathsaku.ini
File metadata and controls
150 lines (117 loc) · 3.45 KB
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
#
# Sample saku.ini to run saku in installed directory.
# Copyright (c) 2005 shinGETsu Project.
#
[Network]
# Bind Address(Default: *)
# :: for ipv6
bind_addr:
# Listening TCP port.
# See also bind_port when server.cgi runs with reverse proxy.
port: 8000
# Listening TCP port(2ch interface)
dat_port: 8001
# Prefer IPv4 for client.
# When your network is ready for IPv6
# but saku can't listen IPv6,
# turn it yes.
prefer_ipv4: no
# Max HTTP Connection
max_connection: 20
# Server name for shinGETsu protocol.
# Used by /join command.
dnsname:
# server.cgi accept access with dnsname only.
# Turn it no when server.cgi runs with dnsname and reverse proxy.
dnsname_should_match: yes
# Real listening port.
# Set it when server.cgi runs with reverse proxy.
bind_port: %(port)s
# use X-FORWARDED-FOR if defined.
# Turn it yes when server.cgi runs with reverse proxy.
use_x_forwarded_for: no
[Path]
prefix: /usr/local
var: /var/local
sysconfig: /usr/local/etc
docroot: %(prefix)s/share/saku/www
file_dir: %(prefix)s/share/saku/file
template_dir: %(prefix)s/share/saku/template
log_dir: %(var)s/log/saku
run_dir: %(var)s/run/saku
cache_dir: %(var)s/lib/saku/cache
spam_list: %(sysconfig)s/saku/spam.txt
initnode_list: %(sysconfig)s/saku/initnode.txt
node_allow: %(sysconfig)s/saku/node_allow.txt
node_deny: %(sysconfig)s/saku/node_deny.txt
apache_docroot: %(var)s/www/shingetsu
archive_dir: %(var)s/www/archive
# Revert (pingAll timing/nodelist init/cache sync) metadata of the last time.
use_client_log: yes
[Gateway]
# The IP address of administrator.
# List of IP addresses or CIDRs.
admin_net: ::1, 127.0.0.1
# The IP address of users who can get cache from network.
# List of IP addresses or CIDRs.
friend_net: ::1, 127.0.0.1
# The IP address of users who can use gateway.
# List of IP addresses or CIDRs.
visitor_net: ::/0, 0.0.0.0/0
# Limit of number of tags.
tag_size: 20
# Directory index for /.
# Example: /index.html
root_index: /gateway.cgi
# Time range for including RSS. (seconds)
# 259200 = 3*24*60*60
rss_range: 259200
# Time range for including toppage. (seconds)
# 259200 = 3*24*60*60
top_recent_range: 259200
# Time range to get recent list. (seconds)
# 2678400 = 31*24*60*60; 0 for infinity
recent_range: 2678400
# Record size limit. (kilo bytes)
record_limit: 2048
# Server name (and port) for gateway.
# Example: bbs.shingetsu.info
# example.com:8000
server_name:
# Server name (and port) for proxy.
# Example: bbs.shingetsu.info
# example.com:8000
proxy_destination:
# Gateway prptocol.
# http or https
protocol: http
# Archive using mkarchive.py
# See https://shingetsu.info/archive/ .
# Set null string not to use this.
archive_uri: https://archive.shingetsu.info/
# 2ch-interface
enable_2ch: no
[Application Thread]
# Time range for saving records. (seconds)
# 0 for infinity
save_record: 0
# Number for saving records.
# The records exceed both save_record and save_size are removed.
save_size: 1
# Time range to get file first. (seconds)
# 2678400 = 31*24*60*60; 0 for infinity
get_range: 2678400
# Time range for periodic file syncing. (seconds)
# 864000 = 10*24*60*60; 0 for infinity
sync_range: 864000
# Time range for saving removed records. (seconds)
# It shoud be larger than sync_range.
# 4320000 = 50*24*60*60; 0 for infinity
save_removed: 4320000
# Page size
page_size: 50
# Make thumbnail and thumbnai size. (max x-size "x" max y-size)
# It requires PIL.Image.
#thumbnail_size: 400x400
# Auto make thumbnail another size. (yes/no)
force_thumbnail: no