nitro 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. data/{ChangeLog → CHANGELOG} +137 -0
  2. data/INSTALL +1 -2
  3. data/README +1 -1
  4. data/Rakefile +10 -61
  5. data/benchmark/{nitro/bench.rb → bench.rb} +1 -1
  6. data/benchmark/{nitro/simple-webrick-n-200.txt → simple-webrick-n-200.txt} +0 -0
  7. data/benchmark/{nitro/static-webrick-n-200.txt → static-webrick-n-200.txt} +0 -0
  8. data/benchmark/{nitro/tiny-lhttpd-n-200-c-5.txt → tiny-lhttpd-n-200-c-5.txt} +0 -0
  9. data/benchmark/{nitro/tiny-webrick-n-200-c-5.txt → tiny-webrick-n-200-c-5.txt} +0 -0
  10. data/benchmark/{nitro/tiny-webrick-n-200.txt → tiny-webrick-n-200.txt} +0 -0
  11. data/benchmark/{nitro/tiny2-webrick-n-200.txt → tiny2-webrick-n-200.txt} +0 -0
  12. data/doc/{ChangeLog.1 → CHANGELOG.1} +0 -0
  13. data/{RELEASES → doc/RELEASES} +46 -0
  14. data/doc/faq.txt +7 -0
  15. data/examples/README.windows +1 -1
  16. data/examples/ajax/controller.rb +21 -0
  17. data/examples/ajax/public/index.xhtml +70 -0
  18. data/examples/ajax/public/js/ajax.js +64 -0
  19. data/examples/ajax/run.rb +16 -0
  20. data/examples/blog/README +6 -3
  21. data/examples/blog/conf/apache.conf +2 -2
  22. data/examples/blog/conf/lhttpd.conf +2 -2
  23. data/examples/blog/log/apache.error_log +777 -0
  24. data/examples/blog/{root → public}/base.xsl +0 -0
  25. data/examples/blog/{root → public}/fcgi.rb +0 -0
  26. data/examples/blog/{root → public}/m/bubbles.gif +0 -0
  27. data/examples/blog/{root → public}/m/comments_curve.gif +0 -0
  28. data/examples/blog/{root → public}/m/down.gif +0 -0
  29. data/examples/blog/{root → public}/m/footer_bg.gif +0 -0
  30. data/examples/blog/{root → public}/m/garrow.gif +0 -0
  31. data/examples/blog/{root → public}/m/gbull.gif +0 -0
  32. data/examples/blog/{root → public}/m/grbull.gif +0 -0
  33. data/examples/blog/{root → public}/m/h1_bg.gif +0 -0
  34. data/examples/blog/{root → public}/m/header_bg.gif +0 -0
  35. data/examples/blog/{root → public}/m/nitro.gif +0 -0
  36. data/examples/blog/{root → public}/m/obull.gif +0 -0
  37. data/examples/blog/{root → public}/m/page_bg.gif +0 -0
  38. data/examples/blog/{root → public}/m/rss.gif +0 -0
  39. data/examples/blog/{root → public}/m/side_title_bg.gif +0 -0
  40. data/examples/blog/{root → public}/m/sidebar_bg.gif +0 -0
  41. data/examples/{no_xsl_blog/root → blog/public}/style.css +6 -0
  42. data/examples/blog/run.rb +10 -12
  43. data/examples/blog/{lib → src}/blog.rb +3 -3
  44. data/examples/blog/{lib/blog → src}/controller.rb +13 -2
  45. data/examples/blog/src/mailer.rb +23 -0
  46. data/examples/blog/{lib/blog/model.rb → src/models/blog.rb} +4 -7
  47. data/examples/blog/src/models/content.rb +52 -0
  48. data/examples/blog/src/views/blog_entry_email.xhtml +16 -0
  49. data/examples/blog/{root → src/views}/comments.xhtml +0 -0
  50. data/examples/blog/{root → src/views}/entry_form.xhtml +0 -0
  51. data/examples/blog/{root → src/views}/error.xhtml +0 -0
  52. data/examples/blog/{root → src/views}/index.xhtml +0 -0
  53. data/examples/blog/{root → src/views}/login.xhtml +0 -0
  54. data/examples/blog/{root → src/views}/recent_posts.xhtml +0 -0
  55. data/examples/blog/{root → src/views}/view_entry.xhtml +8 -0
  56. data/examples/blog/{root → src/views}/view_entry.xml +0 -0
  57. data/examples/blog/src/xsl/base.xsl +153 -0
  58. data/examples/blog/{root → src/xsl}/style.xsl +2 -2
  59. data/examples/no_xsl_blog/README +5 -1
  60. data/examples/no_xsl_blog/conf/apache.conf +2 -2
  61. data/examples/no_xsl_blog/conf/lhttpd.conf +2 -2
  62. data/examples/no_xsl_blog/lib/blog/model.rb +1 -1
  63. data/{lib/parts → examples/no_xsl_blog/lib}/content.rb +1 -11
  64. data/examples/no_xsl_blog/log/apache.error_log +405 -0
  65. data/examples/no_xsl_blog/{root → public}/comments.xhtml +0 -0
  66. data/examples/no_xsl_blog/{root → public}/entry_form.xhtml +0 -0
  67. data/examples/no_xsl_blog/{root → public}/fcgi.rb +0 -0
  68. data/examples/no_xsl_blog/{root → public}/index.xhtml +0 -0
  69. data/examples/no_xsl_blog/{root → public}/login.xhtml +0 -0
  70. data/examples/no_xsl_blog/{root → public}/m/bubbles.gif +0 -0
  71. data/examples/no_xsl_blog/{root → public}/m/comments_curve.gif +0 -0
  72. data/examples/no_xsl_blog/{root → public}/m/down.gif +0 -0
  73. data/examples/no_xsl_blog/{root → public}/m/footer_bg.gif +0 -0
  74. data/examples/no_xsl_blog/{root → public}/m/garrow.gif +0 -0
  75. data/examples/no_xsl_blog/{root → public}/m/gbull.gif +0 -0
  76. data/examples/no_xsl_blog/{root → public}/m/grbull.gif +0 -0
  77. data/examples/no_xsl_blog/{root → public}/m/h1_bg.gif +0 -0
  78. data/examples/no_xsl_blog/{root → public}/m/header_bg.gif +0 -0
  79. data/examples/no_xsl_blog/{root → public}/m/nitro.gif +0 -0
  80. data/examples/no_xsl_blog/{root → public}/m/obull.gif +0 -0
  81. data/examples/no_xsl_blog/{root → public}/m/page_bg.gif +0 -0
  82. data/examples/no_xsl_blog/{root → public}/m/rss.gif +0 -0
  83. data/examples/no_xsl_blog/{root → public}/m/side_title_bg.gif +0 -0
  84. data/examples/no_xsl_blog/{root → public}/m/sidebar_bg.gif +0 -0
  85. data/examples/no_xsl_blog/{root → public}/recent_posts.xhtml +0 -0
  86. data/examples/{blog/root → no_xsl_blog/public}/style.css +0 -0
  87. data/examples/no_xsl_blog/{root → public}/view_entry.xhtml +0 -0
  88. data/examples/no_xsl_blog/{root → public}/view_entry.xml +0 -0
  89. data/examples/tiny/conf/apache.conf +2 -2
  90. data/examples/tiny/log/apache.error_log +100 -0
  91. data/examples/tiny/{root → public}/fcgi.rb +0 -0
  92. data/examples/tiny/{root → public}/include.xhtml +0 -0
  93. data/examples/tiny/{root → public}/index.xhtml +0 -0
  94. data/{bin/proto/root/m → examples/tiny/public}/nitro.png +0 -0
  95. data/examples/tiny/{root → public}/upload.xhtml +0 -0
  96. data/examples/tiny/run.rb +1 -2
  97. data/examples/why_wiki/wiki.yml +1 -0
  98. data/install.rb +5 -2
  99. data/lib/nitro.rb +2 -6
  100. data/lib/nitro/adapters/fastcgi.rb +2 -2
  101. data/lib/nitro/adapters/webrick.rb +4 -4
  102. data/lib/nitro/conf.rb +5 -2
  103. data/lib/nitro/controller.rb +2 -2
  104. data/lib/nitro/dispatcher.rb +19 -8
  105. data/lib/nitro/mail.rb +252 -8
  106. data/lib/nitro/render.rb +24 -21
  107. data/lib/nitro/runner.rb +1 -1
  108. data/lib/nitro/scaffold.rb +2 -5
  109. data/lib/nitro/simple.rb +2 -1
  110. data/lib/nitro/template.rb +42 -2
  111. data/test/nitro/tc_controller.rb +9 -4
  112. data/test/nitro/tc_dispatcher.rb +4 -6
  113. data/test/nitro/tc_mail.rb +95 -0
  114. data/test/{root → public}/blog/list.xhtml +0 -0
  115. data/test/public/dummy_mailer/registration.xhtml +5 -0
  116. data/vendor/README +0 -1
  117. metadata +136 -181
  118. data/benchmark/og/bench.rb +0 -75
  119. data/benchmark/og/sqlite-no-prepare.1.txt +0 -13
  120. data/benchmark/og/sqlite-no-prepare.2.txt +0 -13
  121. data/benchmark/og/sqlite-prepare.1.txt +0 -13
  122. data/benchmark/og/sqlite-prepare.2.txt +0 -13
  123. data/bin/proto/README +0 -34
  124. data/bin/proto/conf/apache.conf +0 -1
  125. data/bin/proto/conf/app.conf.rb +0 -14
  126. data/bin/proto/conf/lhttpd.conf +0 -236
  127. data/bin/proto/ctl +0 -4
  128. data/bin/proto/lib/README +0 -5
  129. data/bin/proto/log/README +0 -3
  130. data/bin/proto/root/fcgi.rb +0 -6
  131. data/bin/proto/root/index.xhtml +0 -69
  132. data/bin/proto/root/style.css +0 -152
  133. data/bin/proto/root/style.xsl +0 -99
  134. data/doc/og_config.txt +0 -35
  135. data/doc/og_tutorial.txt +0 -595
  136. data/examples/og/README +0 -11
  137. data/examples/og/mock_example.rb +0 -50
  138. data/examples/og/mysql_to_psql.rb +0 -96
  139. data/examples/og/run.rb +0 -286
  140. data/examples/tiny/root/nitro.png +0 -0
  141. data/lib/glue.rb +0 -55
  142. data/lib/glue/array.rb +0 -61
  143. data/lib/glue/attribute.rb +0 -83
  144. data/lib/glue/cache.rb +0 -138
  145. data/lib/glue/flexob.rb +0 -12
  146. data/lib/glue/hash.rb +0 -122
  147. data/lib/glue/inflector.rb +0 -91
  148. data/lib/glue/logger.rb +0 -147
  149. data/lib/glue/misc.rb +0 -14
  150. data/lib/glue/mixins.rb +0 -36
  151. data/lib/glue/number.rb +0 -24
  152. data/lib/glue/object.rb +0 -32
  153. data/lib/glue/pool.rb +0 -60
  154. data/lib/glue/property.rb +0 -408
  155. data/lib/glue/string.rb +0 -162
  156. data/lib/glue/time.rb +0 -85
  157. data/lib/glue/validation.rb +0 -394
  158. data/lib/og.rb +0 -185
  159. data/lib/og/adapter.rb +0 -513
  160. data/lib/og/adapters/filesys.rb +0 -121
  161. data/lib/og/adapters/mysql.rb +0 -347
  162. data/lib/og/adapters/oracle.rb +0 -375
  163. data/lib/og/adapters/psql.rb +0 -273
  164. data/lib/og/adapters/sqlite.rb +0 -262
  165. data/lib/og/backend.rb +0 -297
  166. data/lib/og/connection.rb +0 -304
  167. data/lib/og/database.rb +0 -282
  168. data/lib/og/enchant.rb +0 -125
  169. data/lib/og/meta.rb +0 -373
  170. data/lib/og/mock.rb +0 -165
  171. data/lib/og/observer.rb +0 -53
  172. data/lib/og/typemacros.rb +0 -23
  173. data/lib/parts/README +0 -9
  174. data/test/glue/tc_attribute.rb +0 -22
  175. data/test/glue/tc_cache.rb +0 -45
  176. data/test/glue/tc_hash.rb +0 -38
  177. data/test/glue/tc_logger.rb +0 -39
  178. data/test/glue/tc_numbers.rb +0 -20
  179. data/test/glue/tc_property.rb +0 -89
  180. data/test/glue/tc_property_mixins.rb +0 -93
  181. data/test/glue/tc_property_type_checking.rb +0 -35
  182. data/test/glue/tc_strings.rb +0 -103
  183. data/test/glue/tc_validation.rb +0 -188
  184. data/test/og/tc_filesys.rb +0 -83
  185. data/test/og/tc_lifecycle.rb +0 -104
  186. data/test/og/tc_many_to_many.rb +0 -62
  187. data/test/og/tc_meta.rb +0 -55
  188. data/test/og/tc_observer.rb +0 -85
  189. data/test/og/tc_sqlite.rb +0 -87
  190. data/test/tc_og.rb +0 -355
  191. data/vendor/composite_sexp_processor.rb +0 -43
  192. data/vendor/parse_tree.rb +0 -745
  193. data/vendor/sexp_processor.rb +0 -453
@@ -1,75 +0,0 @@
1
- # * George Moschovitis <gm@navel.gr>
2
- # (c) 2004-2005 Navel, all rights reserved.
3
- # $Id: bench.rb 263 2005-02-23 13:45:08Z gmosx $
4
-
5
- require 'og'; include Og
6
-
7
-
8
- config = {
9
- :adapter => 'sqlite',
10
- :database => 'test',
11
- :connection_count => 5
12
- }
13
-
14
- class Article
15
- prop_accessor :title, String
16
- prop_accessor :body, String
17
- prop_accessor :hits, Fixnum
18
- prop_accessor :rate, Fixnum
19
-
20
- def initialize(title = nil, body = nil)
21
- @title = title
22
- @body = body
23
- @hits = rand(5)
24
- @rate = rand(100)
25
- end
26
- end
27
-
28
- Database.drop_db!(config)
29
- db = Database.new(config)
30
-
31
- # Benchmark the insert speed. Useful for finding
32
- # the improvement when using prepared statements.
33
-
34
- articles = []
35
-
36
- 500.times do |i|
37
- articles << Article.new("Title#{i}", "Body#{i}")
38
- end
39
-
40
- sum = 0
41
- min = 999999
42
- max = -min
43
-
44
- GC.disable
45
-
46
- 10.times do |i|
47
-
48
- db.exec "DELETE FROM #{Article::DBTABLE}"
49
-
50
- for article in articles
51
- article.oid = nil
52
- end
53
-
54
- Article.create("Dummy", "Dummy")
55
-
56
- t1 = Time.now
57
- articles.each do |a|
58
- a.save!
59
- end
60
- t2 = Time.now
61
-
62
- d = t2 - t1
63
- sum += d
64
- min = d if d < min
65
- max = d if d > max
66
-
67
- puts "Insert test #{i}: #{d} seconds"
68
-
69
- end
70
-
71
- puts %{
72
- Min: #{min}
73
- Max: #{max}
74
- Average: #{sum/10}
75
- }
@@ -1,13 +0,0 @@
1
- Insert test 0: 3.53403 seconds
2
- Insert test 1: 4.222878 seconds
3
- Insert test 2: 3.84379 seconds
4
- Insert test 3: 3.877513 seconds
5
- Insert test 4: 3.793392 seconds
6
- Insert test 5: 3.725927 seconds
7
- Insert test 6: 3.814542 seconds
8
- Insert test 7: 3.760054 seconds
9
- Insert test 8: 3.936868 seconds
10
- Insert test 9: 4.061833 seconds
11
- Min: 3.53403
12
- Max: 4.222878
13
- Average: 3.8570827
@@ -1,13 +0,0 @@
1
- Insert test 0: 4.050384 seconds
2
- Insert test 1: 4.098912 seconds
3
- Insert test 2: 3.739213 seconds
4
- Insert test 3: 4.030227 seconds
5
- Insert test 4: 4.061516 seconds
6
- Insert test 5: 3.963748 seconds
7
- Insert test 6: 4.088462 seconds
8
- Insert test 7: 4.047734 seconds
9
- Insert test 8: 3.966496 seconds
10
- Insert test 9: 3.948346 seconds
11
- Min: 3.739213
12
- Max: 4.098912
13
- Average: 3.9995038
@@ -1,13 +0,0 @@
1
- Insert test 0: 3.578891 seconds
2
- Insert test 1: 4.257714 seconds
3
- Insert test 2: 3.535036 seconds
4
- Insert test 3: 3.742329 seconds
5
- Insert test 4: 3.874829 seconds
6
- Insert test 5: 3.608657 seconds
7
- Insert test 6: 3.843804 seconds
8
- Insert test 7: 3.688756 seconds
9
- Insert test 8: 3.858303 seconds
10
- Insert test 9: 3.739155 seconds
11
- Min: 3.535036
12
- Max: 4.257714
13
- Average: 3.7727474
@@ -1,13 +0,0 @@
1
- Insert test 0: 3.859916 seconds
2
- Insert test 1: 4.321912 seconds
3
- Insert test 2: 3.836067 seconds
4
- Insert test 3: 4.077798 seconds
5
- Insert test 4: 4.171512 seconds
6
- Insert test 5: 4.148027 seconds
7
- Insert test 6: 3.841498 seconds
8
- Insert test 7: 3.94367 seconds
9
- Insert test 8: 3.758128 seconds
10
- Insert test 9: 4.25072 seconds
11
- Min: 3.758128
12
- Max: 4.321912
13
- Average: 4.0209248
data/bin/proto/README DELETED
@@ -1,34 +0,0 @@
1
- = Your application
2
-
3
- Here comes the README file for your application.
4
-
5
- == Configuration
6
-
7
- Edit the file conf/app.conf.rb as needed.
8
-
9
- By default this skeleton app uses the PostgreSQL backend.
10
- If you want to use a different backend dont forget to
11
- change it for the DEBUG and LIVE configurations.
12
-
13
- == Run
14
-
15
- Exec the following command:
16
-
17
- ./ctl
18
-
19
- then point your browser to:
20
-
21
- http://127.0.0.1:8080
22
-
23
- (if you want to change the server address/port, edit the config.rb
24
- file)
25
-
26
- == Discussion
27
-
28
- If you want to modify the skeleton app it is a nice idea to switch
29
- to debug mode. Edit the following line in the file app.rb:
30
-
31
- $DBG = true
32
-
33
- In debug mode the view files (xhtml/xsl/etc) are automatically
34
- reloaded.
@@ -1 +0,0 @@
1
- # coming soon :)
@@ -1,14 +0,0 @@
1
- # * George Moschovitis <gm@navel.gr>
2
- # (c) 2004-2005 Navel, all rights reserved.
3
- # $Id$
4
-
5
- # $DBG = true
6
-
7
- require 'nitro'
8
- require 'nitro/session'
9
-
10
- $conf = {
11
- :host => 'localhost',
12
- :port => 8080,
13
- :dispatcher => N::Dispatcher.new
14
- }
@@ -1,236 +0,0 @@
1
- # lighttpd configuration file
2
- # $Id$
3
-
4
- ############ Options you really have to take care of ####################
5
-
6
- ## modules to load
7
- # at least mod_access and mod_accesslog should be loaded
8
- # all other module should only be loaded if really neccesary
9
- # - saves some time
10
- # - saves memory
11
-
12
- server.modules = (
13
- "mod_rewrite",
14
- # "mod_redirect",
15
- "mod_access",
16
- # "mod_auth",
17
- # "mod_status",
18
- "mod_fastcgi",
19
- # "mod_simple_vhost",
20
- # "mod_evhost",
21
- # "mod_cgi",
22
- # "mod_compress",
23
- # "mod_ssi",
24
- # "mod_usertrack",
25
- # "mod_rrdtool",
26
- "mod_accesslog"
27
- )
28
-
29
- ## a static document-root, for virtual-hosting take look at the
30
- ## server.virtual-* options
31
- server.document-root = "/home/gmosx/navel/nitro/examples/tiny/root/"
32
-
33
- ## where to send error-messages to
34
- server.errorlog = "/home/gmosx/navel/nitro/examples/tiny/log/lighttpd.error.log"
35
-
36
- # files to check for if .../ is requested
37
- server.indexfiles = ( "index.html" )
38
-
39
- # mimetype mapping
40
- mimetype.assign = (
41
- ".pdf" => "application/pdf",
42
- ".sig" => "application/pgp-signature",
43
- ".spl" => "application/futuresplash",
44
- ".class" => "application/octet-stream",
45
- ".ps" => "application/postscript",
46
- ".torrent" => "application/x-bittorrent",
47
- ".dvi" => "application/x-dvi",
48
- ".gz" => "application/x-gzip",
49
- ".pac" => "application/x-ns-proxy-autoconfig",
50
- ".swf" => "application/x-shockwave-flash",
51
- ".tar.gz" => "application/x-tgz",
52
- ".tgz" => "application/x-tgz",
53
- ".tar" => "application/x-tar",
54
- ".zip" => "application/zip",
55
- ".mp3" => "audio/mpeg",
56
- ".m3u" => "audio/x-mpegurl",
57
- ".wma" => "audio/x-ms-wma",
58
- ".wax" => "audio/x-ms-wax",
59
- ".ogg" => "audio/x-wav",
60
- ".wav" => "audio/x-wav",
61
- ".gif" => "image/gif",
62
- ".jpg" => "image/jpeg",
63
- ".jpeg" => "image/jpeg",
64
- ".png" => "image/png",
65
- ".xbm" => "image/x-xbitmap",
66
- ".xpm" => "image/x-xpixmap",
67
- ".xwd" => "image/x-xwindowdump",
68
- ".css" => "text/css",
69
- ".html" => "text/html",
70
- ".htm" => "text/html",
71
- ".js" => "text/javascript",
72
- ".asc" => "text/plain",
73
- ".c" => "text/plain",
74
- ".conf" => "text/plain",
75
- ".text" => "text/plain",
76
- ".txt" => "text/plain",
77
- ".dtd" => "text/xml",
78
- ".xml" => "text/xml",
79
- ".mpeg" => "video/mpeg",
80
- ".mpg" => "video/mpeg",
81
- ".mov" => "video/quicktime",
82
- ".qt" => "video/quicktime",
83
- ".avi" => "video/x-msvideo",
84
- ".asf" => "video/x-ms-asf",
85
- ".asx" => "video/x-ms-asf",
86
- ".wmv" => "video/x-ms-wmv"
87
- )
88
-
89
- # Use the "Content-Type" extended attribute to obtain mime type if possible
90
- # mimetypes.use-xattr = "enable"
91
-
92
- #### accesslog module
93
- accesslog.filename = "/home/gmosx/navel/nitro/examples/tiny/log/access.log"
94
-
95
- ## deny access the file-extensions
96
- #
97
- # ~ is for backupfiles from vi, emacs, joe, ...
98
- # .inc is often used for code includes which should in general not be part
99
- # of the document-root
100
- url.access-deny = ( "~", ".inc" )
101
-
102
-
103
-
104
- ######### Options that are good to be but not neccesary to be changed #######
105
-
106
- ## bind to port (default: 80)
107
- server.port = 8080
108
-
109
- ## bind to localhost (default: all interfaces)
110
- #server.bind = "grisu.home.kneschke.de"
111
-
112
- ## error-handler for status 404
113
- #server.error-handler-404 = "/error-handler.html"
114
- #server.error-handler-404 = "/error-handler.php"
115
-
116
- ## to help the rc.scripts
117
- # server.pid-file = "/var/run/lighttpd.pid"
118
-
119
-
120
- ###### virtual hosts
121
- ##
122
- ## If you want name-based virtual hosting add the next three settings and load
123
- ## mod_simple_vhost
124
- ##
125
- ## document-root =
126
- ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
127
- ## virtual-server-root + http-host + virtual-server-docroot
128
- ##
129
- #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
130
- #simple-vhost.default-host = "grisu.home.kneschke.de"
131
- #simple-vhost.document-root = "/pages/"
132
-
133
-
134
- ##
135
- ## Format: <errorfile-prefix><status>.html
136
- ## -> ..../status-404.html for 'File not found'
137
- #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
138
-
139
- ## virtual directory listings
140
- #server.dir-listing = "enable"
141
-
142
- ## send unhandled HTTP-header headers to error-log
143
- #debug.dump-unknown-headers = "enable"
144
-
145
- ### only root can use these options
146
- #
147
- # chroot() to directory (default: no chroot() )
148
- #server.chroot = "/"
149
-
150
- ## change uid to <uid> (default: don't care)
151
- #server.username = "wwwrun"
152
-
153
- ## change uid to <uid> (default: don't care)
154
- #server.groupname = "wwwrun"
155
-
156
- #### compress module
157
- #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
158
- #compress.filetype = ("text/plain", "text/html")
159
-
160
- #### fastcgi module
161
- ## read fastcgi.txt for more info
162
- fastcgi.server = ( ".rb" =>
163
- ( "localhost" =>
164
- (
165
- "socket" => "/tmp/nitro-fcgi.socket",
166
- "bin-path" => "/home/gmosx/navel/nitro/examples/tiny/root/fcgi.rb"
167
- )
168
- )
169
- )
170
-
171
- #### CGI module
172
- #cgi.assign = ( ".pl" => "/usr/bin/perl",
173
- # ".cgi" => "/usr/bin/perl" )
174
- #
175
-
176
- #### SSL engine
177
- #ssl.engine = "enable"
178
- #ssl.pemfile = "server.pem"
179
-
180
- #### status module
181
- # status.status-url = "/server-status"
182
- # status.config-url = "/server-config"
183
-
184
- #### auth module
185
- ## read authentification.txt for more info
186
- # auth.backend = "plain"
187
- # auth.backend.plain.userfile = "lighttpd.user"
188
- # auth.backend.plain.groupfile = "lighttpd.group"
189
-
190
- # auth.backend.ldap.hostname = "localhost"
191
- # auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
192
- # auth.backend.ldap.filter = "(uid=$)"
193
-
194
- # auth.require = ( "/server-status" =>
195
- # (
196
- # "method" => "digest",
197
- # "realm" => "download archiv",
198
- # "require" => "group=www|user=jan|host=192.168.2.10"
199
- # ),
200
- # "/server-info" =>
201
- # (
202
- # "method" => "digest",
203
- # "realm" => "download archiv",
204
- # "require" => "group=www|user=jan|host=192.168.2.10"
205
- # )
206
- # )
207
-
208
- #### url handling modules (rewrite, redirect, access)
209
-
210
- url.rewrite = (
211
- "^/([\/\-_a-zA-Z0-9]+)?$" => "/fcgi.rb",
212
- "^/([\/\-_a-zA-Z0-9]+)?\?([\-_a-zA-Z0-9=;&%]*)$" => "/fcgi.rb?$2"
213
- )
214
-
215
- # url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
216
-
217
- #
218
- # define a pattern for the host url finding
219
- # %% => % sign
220
- # %0 => domain name + tld
221
- # %1 => tld
222
- # %2 => domain name without tld
223
- # %3 => subdomain 1 name
224
- # %4 => subdomain 2 name
225
- #
226
- # evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
227
-
228
- #### expire module
229
- # expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
230
-
231
- #### ssi
232
- # ssi.extension = ( ".shtml" )
233
-
234
- #### rrdtool
235
- # rrdtool.binary = "/usr/bin/rrdtool"
236
- # rrdtool.db-name = "/var/www/lighttpd.rrd"
data/bin/proto/ctl DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib')
4
- require 'nitro/adaptors/runner'
data/bin/proto/lib/README DELETED
@@ -1,5 +0,0 @@
1
- = Library
2
-
3
- Your ruby implementation files come here (components,
4
- controllers, models, utils etc).
5
-
data/bin/proto/log/README DELETED
@@ -1,3 +0,0 @@
1
- = Logs
2
-
3
- Various logs come here.
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require File.join(File.dirname(__FILE__), '..', 'conf', 'app.conf.rb')
4
- require 'nitro/adaptors/fastcgi'
5
-
6
- N::FastCGI.start($conf)