~ubuntu-branches/ubuntu/wily/tdiary/wily

« back to all changes in this revision

Viewing changes to misc/paas/cloudfoundry/tdiary.conf

  • Committer: Package Import Robot
  • Author(s): Hideki Yamane
  • Date: 2013-05-19 16:14:01 UTC
  • mfrom: (12.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130519161401-hf5oyr8g8a94fsew
Tags: 3.2.2-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'tempfile'
 
2
@data_path = Dir.tmpdir
 
3
 
 
4
psql_service = CFRuntime::CloudApp.service_names_of_type('postgresql')
 
5
psql_options = CFRuntime::PGClient.options_for_svc(names[0])
 
6
@database_url = "postgres://#{psql_options[:user]}:#{psql_options[:password]}@#{psql_options[:host]}:#{psql_options[:port]}/#{psql_options[:dbname]}"
 
7
 
 
8
@style = 'GFM'
 
9
 
 
10
require 'tdiary/io/cache/memcached'
 
11
require 'tdiary/io/rdb'
 
12
@io_class = TDiary::RdbIO
 
13
 
 
14
@index = './'
 
15
@update = 'update.rb'
 
16
@logger = Logger.new($stderr)
 
17
 
 
18
@accesskey_enabled = false
 
19
@options['bot'] = [
 
20
        '^BlogLines/',
 
21
        '^blogmap',
 
22
        'MI[CK]AN/',
 
23
        '^NG/',
 
24
        '^samidare',
 
25
        '^TAMATEBAKO/'
 
26
]
 
27
 
 
28
@options['apply_plugin'] = true
 
29
@options['sp.path'] = ['misc/plugin']
 
30
@options['style.path'] = ['misc/style/gfm', 'tdiary/style']
 
31
@options['sp.selected'] =
 
32
"amazon.rb
 
33
append-css.rb
 
34
calendar2.rb
 
35
dropdown_calendar.rb
 
36
footnote.rb
 
37
highlight.rb
 
38
image.rb
 
39
jdate.rb
 
40
kw.rb
 
41
my-ex.rb
 
42
"
 
43
 
 
44
@options['dropdown_calendar.label'] = ''
 
45
@options['spamfilter.bad_comment_patts'] = "(href=|casino|gambling|betting|fastsearch\\.eu\\.com|ganzao|poker|holdem|hold.em|roulette|drug|tramadol|viagra|fioricet|oxycontin|biaxin|aldara|business cards|home depot|slot.?machine|insurance|getblog2|video-game|Good site|internet-all\\.com|deai|tdfms|comu2|omaha)\r\n"
 
46
@options['spamfilter.bad_ip_addrs'] = ""
 
47
@options['spamfilter.bad_mail_patts'] = "(mu@alloha\\.info|mumu2004@mail\\.com|zhongleibo|dfd@12\\.com|anonimous|aol\\.|yahoo\\.|google\\.|hotmail\\.|msn\\.|leroy\\.|ablare\\.|gmx\\.|lorazepam|\\.co$)"
 
48
@options['spamfilter.bad_uri_patts'] = ""
 
49
@options['spamfilter.bad_uri_patts_for_mails'] = false
 
50
@options['spamfilter.debug_file'] = ""
 
51
@options['spamfilter.debug_mode'] = false
 
52
@options['spamfilter.filter_mode'] = true
 
53
@options['spamfilter.max_uris'] = "2"
 
54
@options['spamfilter.resolv_check'] = false
 
55
@options['spamfilter.resolv_check_mode'] = false
 
56
@options['spamlookup.domain.list'] = "bsb.spamlookup.net\r\nsc.surbl.org\r\nrbl.bulkfeeds.jp"
 
57
@options['spamlookup.safe_domain.list'] = "search.yahoo.co.jp\r\nwww.google.com\r\nwww.google.co.jp\r\nsearch.msn.co.jp"
 
58
 
 
59
@html_title = %Q[【日記のタイトル】]
 
60
@header = <<HEADER
 
61
<%= navi %>
 
62
<h1><%= @html_title %></h1>
 
63
<div class="main">
 
64
HEADER
 
65
@footer = <<FOOTER
 
66
</div>
 
67
<div class="sidebar">
 
68
<div style="text-align: center">
 
69
<%= calendar2 %>
 
70
<%= calendar %>
 
71
</div>
 
72
</div>
 
73
FOOTER
 
74
 
 
75
@date_format = '%Y年%m月%d日'
 
76
@section_anchor = '<span class="sanchor">_</span>'
 
77
@comment_anchor = '<span class="canchor">_</span>'
 
78
@latest_limit = 10
 
79
@theme = 'default'
 
80
@show_comment = true
 
81
@comment_limit = 3
 
82
@show_referer = false
 
83
@referer_day_only = true
 
84
@hour_offset = 9
 
85
@show_nyear = true
 
86
@secure = false
 
87
 
 
88
load_cgi_conf