gemstash 2.7.1 → 2.8.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gemstash/cache.rb +2 -1
  3. data/lib/gemstash/cli/info.rb +29 -0
  4. data/lib/gemstash/cli/setup.rb +11 -3
  5. data/lib/gemstash/cli.rb +6 -0
  6. data/lib/gemstash/config.ru +2 -1
  7. data/lib/gemstash/configuration.rb +5 -0
  8. data/lib/gemstash/db/version.rb +0 -5
  9. data/lib/gemstash/env.rb +5 -2
  10. data/lib/gemstash/http_client.rb +2 -1
  11. data/lib/gemstash/logging.rb +4 -1
  12. data/lib/gemstash/man/gemstash-authorize.1 +36 -17
  13. data/lib/gemstash/man/gemstash-authorize.1.txt +15 -17
  14. data/lib/gemstash/man/gemstash-configuration.5 +136 -63
  15. data/lib/gemstash/man/gemstash-configuration.5.txt +80 -64
  16. data/lib/gemstash/man/gemstash-customize.7 +114 -61
  17. data/lib/gemstash/man/gemstash-customize.7.txt +56 -51
  18. data/lib/gemstash/man/gemstash-debugging.7 +27 -9
  19. data/lib/gemstash/man/gemstash-debugging.7.txt +6 -8
  20. data/lib/gemstash/man/gemstash-deploy.7 +39 -16
  21. data/lib/gemstash/man/gemstash-deploy.7.txt +19 -21
  22. data/lib/gemstash/man/gemstash-mirror.7 +31 -11
  23. data/lib/gemstash/man/gemstash-mirror.7.txt +6 -8
  24. data/lib/gemstash/man/gemstash-multiple-sources.7 +68 -35
  25. data/lib/gemstash/man/gemstash-multiple-sources.7.txt +20 -22
  26. data/lib/gemstash/man/gemstash-private-gems.7 +102 -52
  27. data/lib/gemstash/man/gemstash-private-gems.7.txt +31 -33
  28. data/lib/gemstash/man/gemstash-readme.7 +75 -30
  29. data/lib/gemstash/man/gemstash-readme.7.txt +24 -26
  30. data/lib/gemstash/man/gemstash-setup.1 +33 -14
  31. data/lib/gemstash/man/gemstash-setup.1.txt +12 -14
  32. data/lib/gemstash/man/gemstash-start.1 +23 -6
  33. data/lib/gemstash/man/gemstash-start.1.txt +5 -7
  34. data/lib/gemstash/man/gemstash-status.1 +23 -6
  35. data/lib/gemstash/man/gemstash-status.1.txt +6 -8
  36. data/lib/gemstash/man/gemstash-stop.1 +23 -6
  37. data/lib/gemstash/man/gemstash-stop.1.txt +5 -7
  38. data/lib/gemstash/man/gemstash-version.1 +24 -5
  39. data/lib/gemstash/man/gemstash-version.1.txt +1 -3
  40. data/lib/gemstash/puma.rb +2 -0
  41. data/lib/gemstash/specs_builder.rb +16 -2
  42. data/lib/gemstash/upstream.rb +1 -1
  43. data/lib/gemstash/version.rb +1 -1
  44. metadata +37 -21
@@ -1,12 +1,28 @@
1
- <!-- Automatically generated by Pandoc -->
2
- .\" Automatically generated by Pandoc 3.1.8
1
+ .\" Automatically generated by Pandoc 3.1.3
3
2
  .\"
3
+ .\" Define V font for inline verbatim, using C font in formats
4
+ .\" that render this, and otherwise B font.
5
+ .ie "\f[CB]x\f[]"x" \{\
6
+ . ftr V B
7
+ . ftr VI BI
8
+ . ftr VB B
9
+ . ftr VBI BI
10
+ .\}
11
+ .el \{\
12
+ . ftr V CR
13
+ . ftr VI CI
14
+ . ftr VB CB
15
+ . ftr VBI CBI
16
+ .\}
4
17
  .TH "gemstash-configuration" "5" "October 13, 2015" "" ""
18
+ .hy
5
19
  .SH Name
20
+ .PP
6
21
  gemstash-configuration
7
22
  .SH Synopsis
8
23
  .IP
9
- .EX
24
+ .nf
25
+ \f[C]
10
26
  # \[ti]/.gemstash/config.yml
11
27
  ---
12
28
  :base_path: \[dq]/var/gemstash\[dq]
@@ -23,10 +39,13 @@ gemstash-configuration
23
39
  :bind: tcp://0.0.0.0:4242
24
40
  :protected_fetch: true
25
41
  :fetch_timeout: 10
42
+ :open_timeout: 2
26
43
  :log_file: gemstash.log
27
- .EE
44
+ \f[R]
45
+ .fi
28
46
  .SH Base Path
29
- \f[CR]:base_path\f[R]
47
+ .PP
48
+ \f[V]:base_path\f[R]
30
49
  .PP
31
50
  Specifies where to store local files like the server log, cached gem
32
51
  files, and the database (when using SQLite).
@@ -34,111 +53,136 @@ If the default is being used, the directory will be created if it does
34
53
  not exist.
35
54
  Any other directory needs to be created ahead of time and be writable to
36
55
  the Gemstash server process.
37
- Specifying the \f[CR]:base_path\f[R] via \f[CR]gemstash setup\f[R] will
56
+ Specifying the \f[V]:base_path\f[R] via \f[V]gemstash setup\f[R] will
38
57
  create the directory for you.
39
58
  .SS Default value
40
- \f[CR]\[ti]/.gemstash\f[R]
59
+ .PP
60
+ \f[V]\[ti]/.gemstash\f[R]
41
61
  .SS Valid values
62
+ .PP
42
63
  Any valid path
43
64
  .SH Cache Type
44
- \f[CR]:cache_type\f[R]
65
+ .PP
66
+ \f[V]:cache_type\f[R]
45
67
  .PP
46
68
  Specifies how to cache values other than gem files (such as gem
47
69
  dependencies).
48
- \f[CR]memory\f[R] will use an in memory cache while \f[CR]memcached\f[R]
70
+ \f[V]memory\f[R] will use an in memory cache while \f[V]memcached\f[R]
49
71
  will point to 1 or more Memcached servers.
50
- Use the \f[CR]:memcached_servers\f[R] configuration key for specifying
72
+ Use the \f[V]:memcached_servers\f[R] configuration key for specifying
51
73
  where the Memcached server(s) are.
52
74
  .SS Default value
53
- \f[CR]memory\f[R]
75
+ .PP
76
+ \f[V]memory\f[R]
54
77
  .SS Valid values
55
- \f[CR]memory\f[R], \f[CR]memcached\f[R]
78
+ .PP
79
+ \f[V]memory\f[R], \f[V]memcached\f[R]
56
80
  .SH Memcached Servers
57
- \f[CR]:memcached_servers\f[R]
81
+ .PP
82
+ \f[V]:memcached_servers\f[R]
58
83
  .PP
59
84
  Specifies the Memcached servers to connect to when using
60
- \f[CR]memcached\f[R] for the \f[CR]:cache_type\f[R].
61
- Only used when \f[CR]memcached\f[R] is used for \f[CR]:cache_type\f[R].
85
+ \f[V]memcached\f[R] for the \f[V]:cache_type\f[R].
86
+ Only used when \f[V]memcached\f[R] is used for \f[V]:cache_type\f[R].
62
87
  .SS Default value
63
- \f[CR]localhost:11211\f[R]
88
+ .PP
89
+ \f[V]localhost:11211\f[R]
64
90
  .SS Valid values
91
+ .PP
65
92
  A comma delimited list of Memcached servers
66
93
  .SH DB Adapter
67
- \f[CR]:db_adapter\f[R]
94
+ .PP
95
+ \f[V]:db_adapter\f[R]
68
96
  .PP
69
97
  Specifies what database adapter to use.
70
- When \f[CR]sqlite3\f[R] is used, the database will be located at
71
- \f[CR]gemstash.db\f[R] within the directory specified by
72
- \f[CR]:base_path\f[R].
73
- The database will automatically be created when using
74
- \f[CR]sqlite3\f[R].
75
- When \f[CR]postgres\f[R], \f[CR]mysql\f[R], or \f[CR]mysql2\f[R] is
76
- used, the database to connect to must be specified in the
77
- \f[CR]:db_url\f[R] configuration key.
98
+ When \f[V]sqlite3\f[R] is used, the database will be located at
99
+ \f[V]gemstash.db\f[R] within the directory specified by
100
+ \f[V]:base_path\f[R].
101
+ The database will automatically be created when using \f[V]sqlite3\f[R].
102
+ When \f[V]postgres\f[R], \f[V]mysql\f[R], or \f[V]mysql2\f[R] is used,
103
+ the database to connect to must be specified in the \f[V]:db_url\f[R]
104
+ configuration key.
78
105
  The database must already be created when using anything other than
79
- \f[CR]sqlite3\f[R].
106
+ \f[V]sqlite3\f[R].
80
107
  .SS Default value
81
- \f[CR]sqlite3\f[R]
108
+ .PP
109
+ \f[V]sqlite3\f[R]
82
110
  .SS Valid values
83
- \f[CR]sqlite3\f[R], \f[CR]postgres\f[R], \f[CR]mysql\f[R],
84
- \f[CR]mysql2\f[R]
111
+ .PP
112
+ \f[V]sqlite3\f[R], \f[V]postgres\f[R], \f[V]mysql\f[R], \f[V]mysql2\f[R]
85
113
  .SH DB URL
86
- \f[CR]:db_url\f[R]
87
114
  .PP
88
- Specifies the database to connect to when using \f[CR]postgres\f[R],
89
- \f[CR]mysql\f[R], or \f[CR]mysql2\f[R] for the \f[CR]:db_adapter\f[R].
90
- Only used when the \f[CR]:db_adapter\f[R] is not \f[CR]sqlite3\f[R].
115
+ \f[V]:db_url\f[R]
116
+ .PP
117
+ Specifies the database to connect to when using \f[V]postgres\f[R],
118
+ \f[V]mysql\f[R], or \f[V]mysql2\f[R] for the \f[V]:db_adapter\f[R].
119
+ Only used when the \f[V]:db_adapter\f[R] is not \f[V]sqlite3\f[R].
91
120
  .SS Default value
121
+ .PP
92
122
  None
93
123
  .SS Valid values
124
+ .PP
94
125
  A valid database URL for the Sequel gem (http://sequel.jeremyevans.net/)
95
126
  .SH DB Connection Options
96
- \f[CR]:db_connection_options\f[R]
97
127
  .PP
98
- Specifies additional \f[CR]Sequel.connect\f[R] options to use.
128
+ \f[V]:db_connection_options\f[R]
129
+ .PP
130
+ Specifies additional \f[V]Sequel.connect\f[R] options to use.
99
131
  Note that any options here are merged in with the default options, so
100
- you need not specify the \f[CR]max_connections\f[R] if you customize
101
- this option.
132
+ you need not specify the \f[V]max_connections\f[R] if you customize this
133
+ option.
102
134
  .SS Default value
103
- \f[CR]{ max_connections: 1 }\f[R] for \f[CR]sqlite3\f[R] adapter,
104
- \f[CR]{ max_connections: config[:puma_threads] + 1 }\f[R] for any other
135
+ .PP
136
+ \f[V]{ max_connections: 1 }\f[R] for \f[V]sqlite3\f[R] adapter,
137
+ \f[V]{ max_connections: config[:puma_threads] + 1 }\f[R] for any other
105
138
  adapter.
106
139
  .SS Valid values
140
+ .PP
107
141
  A valid connection options Hash for the
108
142
  Sequel.connect (http://sequel.jeremyevans.net/rdoc/files/doc/opening_databases_rdoc.html#label-General+connection+options)
109
143
  method.
110
144
  .SH Rubygems URL
111
- \f[CR]:rubygems_url\f[R]
145
+ .PP
146
+ \f[V]:rubygems_url\f[R]
112
147
  .PP
113
148
  Specifies the default gem source URL.
114
- When any API endpoint is called without a \f[CR]/private\f[R] or
115
- \f[CR]/upstream/<url>\f[R] prefix, this URL will be used to fetch the
149
+ When any API endpoint is called without a \f[V]/private\f[R] or
150
+ \f[V]/upstream/<url>\f[R] prefix, this URL will be used to fetch the
116
151
  result.
117
152
  This value can be safely changed even if there are already gems stashed
118
153
  for the previous value.
119
154
  .SS Default value
120
- \f[CR]https://rubygems.org\f[R]
155
+ .PP
156
+ \f[V]https://rubygems.org\f[R]
121
157
  .SS Valid values
158
+ .PP
122
159
  A valid gem source URL
123
160
  .SH Ignore Gemfile source
124
- \f[CR]:ignore_gemfile_source\f[R]
161
+ .PP
162
+ \f[V]:ignore_gemfile_source\f[R]
125
163
  .PP
126
164
  Ignore the source specified in Gemfile and always use
127
- \f[CR]:rubygems_url\f[R] as gems upstream.
165
+ \f[V]:rubygems_url\f[R] as gems upstream.
128
166
  .SS Default value
129
- \f[CR]false\f[R]
167
+ .PP
168
+ \f[V]false\f[R]
130
169
  .SS Valid values
131
- Boolean: \f[CR]true\f[R] or \f[CR]false\f[R]
170
+ .PP
171
+ Boolean: \f[V]true\f[R] or \f[V]false\f[R]
132
172
  .SH Puma Threads
133
- \f[CR]:puma_threads\f[R]
173
+ .PP
174
+ \f[V]:puma_threads\f[R]
134
175
  .PP
135
176
  Specifies the number of threads used for the Gemstash server.
136
177
  .SS Default value
137
- \f[CR]16\f[R]
178
+ .PP
179
+ \f[V]16\f[R]
138
180
  .SS Valid values
139
- Integer value with a minimum of \f[CR]1\f[R]
181
+ .PP
182
+ Integer value with a minimum of \f[V]1\f[R]
140
183
  .SH Bind Address
141
- \f[CR]:bind\f[R]
184
+ .PP
185
+ \f[V]:bind\f[R]
142
186
  .PP
143
187
  Specifies the binding used to start the Gemstash server.
144
188
  Keep in mind the user starting Gemstash needs to have access to bind in
@@ -146,38 +190,67 @@ this manner.
146
190
  For example, if you use a port below 1024, you will need to run Gemstash
147
191
  as the root user.
148
192
  .SS Default value
149
- \f[CR]tcp://0.0.0.0:9292\f[R]
193
+ .PP
194
+ \f[V]tcp://0.0.0.0:9292\f[R]
150
195
  .SS Valid values
196
+ .PP
151
197
  Any valid binding that is supported by
152
198
  Puma (https://github.com/puma/puma#binding-tcp--sockets)
153
199
  .SH Protected Fetch
154
- \f[CR]:protected_fetch\f[R]
200
+ .PP
201
+ \f[V]:protected_fetch\f[R]
155
202
  .PP
156
203
  Tells Gemstash to authenticate via an API key before allowing the
157
204
  fetching of private gems and specs.
158
205
  The default behavior is to allow unauthenticated download of private
159
206
  gems and specs.
160
207
  .SS Default value
161
- \f[CR]false\f[R]
208
+ .PP
209
+ \f[V]false\f[R]
162
210
  .SS Valid values
163
- Boolean values \f[CR]true\f[R] or \f[CR]false\f[R]
211
+ .PP
212
+ Boolean values \f[V]true\f[R] or \f[V]false\f[R]
164
213
  .SH Fetch Timeout
165
- \f[CR]:fetch_timeout\f[R]
166
214
  .PP
167
- The timeout setting for fetching gems.
215
+ \f[V]:fetch_timeout\f[R]
216
+ .PP
217
+ This is the number of seconds to allow for fetching a gem from upstream.
218
+ It covers establishing the connection and receiving the response.
168
219
  Fetching gems over a slow connection may cause timeout errors.
169
220
  If you experience timeout errors, you may want to increase this value.
170
- The default is \f[CR]20\f[R] seconds.
221
+ The default is \f[V]20\f[R] seconds.
171
222
  .SS Default value
172
- \f[CR]20\f[R]
223
+ .PP
224
+ \f[V]20\f[R]
173
225
  .SS Valid values
174
- Integer value with a minimum of \f[CR]1\f[R]
226
+ .PP
227
+ Integer value with a minimum of \f[V]1\f[R]
228
+ .SH Open Timeout
229
+ .PP
230
+ \f[V]:open_timeout\f[R]
231
+ .PP
232
+ The timeout setting for opening the connection to an upstream gem
233
+ server.
234
+ On high-latency networks, even establishing the connection to an
235
+ upstream gem server can take a while.
236
+ If you experience connection failures instead of timeout errors, you may
237
+ want to increase this value.
238
+ The default is \f[V]2\f[R] seconds.
239
+ .SS Default value
240
+ .PP
241
+ \f[V]2\f[R]
242
+ .SS Valid values
243
+ .PP
244
+ Integer value with a minimum of \f[V]1\f[R]
175
245
  .SH Log File
176
- \f[CR]:log_file\f[R]
246
+ .PP
247
+ \f[V]:log_file\f[R]
177
248
  .PP
178
249
  Indicates the name of the file to use for logging.
179
250
  The file will be placed in the base path.
180
251
  .SS Default value
181
- \f[CR]server.log\f[R]
252
+ .PP
253
+ \f[V]server.log\f[R]
182
254
  .SS Valid values
183
- Any valid file name, or \f[CR]:stdout\f[R] to log to \f[CR]$stdout\f[R]
255
+ .PP
256
+ Any valid file name, or \f[V]:stdout\f[R] to log to \f[V]$stdout\f[R]
@@ -1,7 +1,5 @@
1
1
  4mgemstash-configuration24m(5) 4mgemstash-configuration24m(5)
2
2
 
3
- <!-- Automatically generated by Pandoc -->
4
-
5
3
  1mName0m
6
4
  gemstash-configuration
7
5
 
@@ -22,184 +20,202 @@
22
20
  :bind: tcp://0.0.0.0:4242
23
21
  :protected_fetch: true
24
22
  :fetch_timeout: 10
23
+ :open_timeout: 2
25
24
  :log_file: gemstash.log
26
25
 
27
26
  1mBase Path0m
28
- :base_path
27
+ 1m:base_path0m
29
28
 
30
- Specifies where to store local files like the server log, cached gem
31
- files, and the database (when using SQLite). If the default is being
29
+ Specifies where to store local files like the server log, cached gem
30
+ files, and the database (when using SQLite). If the default is being
32
31
  used, the directory will be created if it does not exist. Any other
33
32
  directory needs to be created ahead of time and be writable to the Gem-
34
- stash server process. Specifying the :base_path via gemstash setup
33
+ stash server process. Specifying the 1m:base_path 22mvia 1mgemstash setup0m
35
34
  will create the directory for you.
36
35
 
37
36
  1mDefault value0m
38
- ~/.gemstash
37
+ 1m~/.gemstash0m
39
38
 
40
39
  1mValid values0m
41
40
  Any valid path
42
41
 
43
42
  1mCache Type0m
44
- :cache_type
43
+ 1m:cache_type0m
45
44
 
46
45
  Specifies how to cache values other than gem files (such as gem depen-
47
- dencies). memory will use an in memory cache while memcached will
48
- point to 1 or more Memcached servers. Use the :memcached_servers con-
46
+ dencies). 1mmemory 22mwill use an in memory cache while 1mmemcached 22mwill
47
+ point to 1 or more Memcached servers. Use the 1m:memcached_servers 22mcon-
49
48
  figuration key for specifying where the Memcached server(s) are.
50
49
 
51
50
  1mDefault value0m
52
- memory
51
+ 1mmemory0m
53
52
 
54
53
  1mValid values0m
55
- memory, memcached
54
+ 1mmemory22m, 1mmemcached0m
56
55
 
57
56
  1mMemcached Servers0m
58
- :memcached_servers
57
+ 1m:memcached_servers0m
59
58
 
60
- Specifies the Memcached servers to connect to when using memcached for
61
- the :cache_type. Only used when memcached is used for :cache_type.
59
+ Specifies the Memcached servers to connect to when using 1mmemcached 22mfor
60
+ the 1m:cache_type22m. Only used when 1mmemcached 22mis used for 1m:cache_type22m.
62
61
 
63
62
  1mDefault value0m
64
- localhost:11211
63
+ 1mlocalhost:112110m
65
64
 
66
65
  1mValid values0m
67
66
  A comma delimited list of Memcached servers
68
67
 
69
68
  1mDB Adapter0m
70
- :db_adapter
69
+ 1m:db_adapter0m
71
70
 
72
- Specifies what database adapter to use. When sqlite3 is used, the
73
- database will be located at gemstash.db within the directory specified
74
- by :base_path. The database will automatically be created when using
75
- sqlite3. When postgres, mysql, or mysql2 is used, the database to con-
76
- nect to must be specified in the :db_url configuration key. The data-
77
- base must already be created when using anything other than sqlite3.
71
+ Specifies what database adapter to use. When 1msqlite3 22mis used, the
72
+ database will be located at 1mgemstash.db 22mwithin the directory specified
73
+ by 1m:base_path22m. The database will automatically be created when using
74
+ 1msqlite322m. When 1mpostgres22m, 1mmysql22m, or 1mmysql2 22mis used, the database to con-
75
+ nect to must be specified in the 1m:db_url 22mconfiguration key. The data-
76
+ base must already be created when using anything other than 1msqlite322m.
78
77
 
79
78
  1mDefault value0m
80
- sqlite3
79
+ 1msqlite30m
81
80
 
82
81
  1mValid values0m
83
- sqlite3, postgres, mysql, mysql2
82
+ 1msqlite322m, 1mpostgres22m, 1mmysql22m, 1mmysql20m
84
83
 
85
84
  1mDB URL0m
86
- :db_url
85
+ 1m:db_url0m
87
86
 
88
- Specifies the database to connect to when using postgres, mysql, or
89
- mysql2 for the :db_adapter. Only used when the :db_adapter is not
90
- sqlite3.
87
+ Specifies the database to connect to when using 1mpostgres22m, 1mmysql22m, or
88
+ 1mmysql2 22mfor the 1m:db_adapter22m. Only used when the 1m:db_adapter 22mis not
89
+ 1msqlite322m.
91
90
 
92
91
  1mDefault value0m
93
92
  None
94
93
 
95
94
  1mValid values0m
96
- A valid database URL for the Sequel gem (http://sequel.jeremye-
95
+ A valid database URL for the Sequel gem (http://sequel.jeremye-
97
96
  vans.net/)
98
97
 
99
98
  1mDB Connection Options0m
100
- :db_connection_options
99
+ 1m:db_connection_options0m
101
100
 
102
- Specifies additional Sequel.connect options to use. Note that any op-
103
- tions here are merged in with the default options, so you need not
104
- specify the max_connections if you customize this option.
101
+ Specifies additional 1mSequel.connect 22moptions to use. Note that any op-
102
+ tions here are merged in with the default options, so you need not
103
+ specify the 1mmax_connections 22mif you customize this option.
105
104
 
106
105
  1mDefault value0m
107
- { max_connections: 1 } for sqlite3 adapter, { max_connections: con-
108
- fig[:puma_threads] + 1 } for any other adapter.
106
+ 1m{ max_connections: 1 } 22mfor 1msqlite3 22madapter, 1m{ max_connections: con-0m
107
+ 1mfig[:puma_threads] + 1 } 22mfor any other adapter.
109
108
 
110
109
  1mValid values0m
111
- A valid connection options Hash for the Sequel.connect (http://se-
110
+ A valid connection options Hash for the Sequel.connect (http://se-
112
111
  quel.jeremyevans.net/rdoc/files/doc/opening_databases_rdoc.html#label-
113
112
  General+connection+options) method.
114
113
 
115
114
  1mRubygems URL0m
116
- :rubygems_url
115
+ 1m:rubygems_url0m
117
116
 
118
117
  Specifies the default gem source URL. When any API endpoint is called
119
- without a /private or /upstream/<url> prefix, this URL will be used to
118
+ without a 1m/private 22mor 1m/upstream/<url> 22mprefix, this URL will be used to
120
119
  fetch the result. This value can be safely changed even if there are
121
120
  already gems stashed for the previous value.
122
121
 
123
122
  1mDefault value0m
124
- https://rubygems.org
123
+ 1mhttps://rubygems.org0m
125
124
 
126
125
  1mValid values0m
127
126
  A valid gem source URL
128
127
 
129
128
  1mIgnore Gemfile source0m
130
- :ignore_gemfile_source
129
+ 1m:ignore_gemfile_source0m
131
130
 
132
- Ignore the source specified in Gemfile and always use :rubygems_url as
131
+ Ignore the source specified in Gemfile and always use 1m:rubygems_url 22mas
133
132
  gems upstream.
134
133
 
135
134
  1mDefault value0m
136
- false
135
+ 1mfalse0m
137
136
 
138
137
  1mValid values0m
139
- Boolean: true or false
138
+ Boolean: 1mtrue 22mor 1mfalse0m
140
139
 
141
140
  1mPuma Threads0m
142
- :puma_threads
141
+ 1m:puma_threads0m
143
142
 
144
143
  Specifies the number of threads used for the Gemstash server.
145
144
 
146
145
  1mDefault value0m
147
- 16
146
+ 1m160m
148
147
 
149
148
  1mValid values0m
150
- Integer value with a minimum of 1
149
+ Integer value with a minimum of 1m10m
151
150
 
152
151
  1mBind Address0m
153
- :bind
152
+ 1m:bind0m
154
153
 
155
- Specifies the binding used to start the Gemstash server. Keep in mind
154
+ Specifies the binding used to start the Gemstash server. Keep in mind
156
155
  the user starting Gemstash needs to have access to bind in this manner.
157
156
  For example, if you use a port below 1024, you will need to run Gem-
158
157
  stash as the root user.
159
158
 
160
159
  1mDefault value0m
161
- tcp://0.0.0.0:9292
160
+ 1mtcp://0.0.0.0:92920m
162
161
 
163
162
  1mValid values0m
164
163
  Any valid binding that is supported by Puma
165
164
  (https://github.com/puma/puma#binding-tcp--sockets)
166
165
 
167
166
  1mProtected Fetch0m
168
- :protected_fetch
167
+ 1m:protected_fetch0m
169
168
 
170
169
  Tells Gemstash to authenticate via an API key before allowing the
171
- fetching of private gems and specs. The default behavior is to allow
170
+ fetching of private gems and specs. The default behavior is to allow
172
171
  unauthenticated download of private gems and specs.
173
172
 
174
173
  1mDefault value0m
175
- false
174
+ 1mfalse0m
176
175
 
177
176
  1mValid values0m
178
- Boolean values true or false
177
+ Boolean values 1mtrue 22mor 1mfalse0m
179
178
 
180
179
  1mFetch Timeout0m
181
- :fetch_timeout
180
+ 1m:fetch_timeout0m
181
+
182
+ This is the number of seconds to allow for fetching a gem from up-
183
+ stream. It covers establishing the connection and receiving the re-
184
+ sponse. Fetching gems over a slow connection may cause timeout errors.
185
+ If you experience timeout errors, you may want to increase this value.
186
+ The default is 1m20 22mseconds.
187
+
188
+ 1mDefault value0m
189
+ 1m200m
190
+
191
+ 1mValid values0m
192
+ Integer value with a minimum of 1m10m
193
+
194
+ 1mOpen Timeout0m
195
+ 1m:open_timeout0m
182
196
 
183
- The timeout setting for fetching gems. Fetching gems over a slow con-
184
- nection may cause timeout errors. If you experience timeout errors,
185
- you may want to increase this value. The default is 20 seconds.
197
+ The timeout setting for opening the connection to an upstream gem serv-
198
+ er. On high-latency networks, even establishing the connection to an
199
+ upstream gem server can take a while. If you experience connection
200
+ failures instead of timeout errors, you may want to increase this val-
201
+ ue. The default is 1m2 22mseconds.
186
202
 
187
203
  1mDefault value0m
188
- 20
204
+ 1m20m
189
205
 
190
206
  1mValid values0m
191
- Integer value with a minimum of 1
207
+ Integer value with a minimum of 1m10m
192
208
 
193
209
  1mLog File0m
194
- :log_file
210
+ 1m:log_file0m
195
211
 
196
212
  Indicates the name of the file to use for logging. The file will be
197
213
  placed in the base path.
198
214
 
199
215
  1mDefault value0m
200
- server.log
216
+ 1mserver.log0m
201
217
 
202
218
  1mValid values0m
203
- Any valid file name, or :stdout to log to $stdout
219
+ Any valid file name, or 1m:stdout 22mto log to 1m$stdout0m
204
220
 
205
- October 13, 2015 4mgemstash-configuration24m(5)
221
+ October 13, 2015 4mgemstash-configuration24m(5)