List of commits:
Subject Hash Author Date (UTC)
pool sample: removed comments 53364f40abda9cdab63a961e230bedb3c2dfcb67 Catalin(ux) M. BOIE 2019-10-29 15:12:01
Adapt spec file to Fedora 31 599df94445a9396fdc1cc0cc43df50838db973ae Catalin(ux) M. BOIE 2019-10-29 13:59:05
Cosmetic 69abfb69054c86d3b8136a83f3929831b2f75afe Catalin(ux) M. BOIE 2019-10-29 13:56:48
selinux: we need also map for httpd_t -> rocketgit_usr_t 6f4161abd283b4b83e5f3655d47187d9daf37a6f Catalin(ux) M. BOIE 2019-10-29 03:44:20
.spec update f5b7c9777f6e0f9e5b669c45abf5420bf0da80b8 Catalin(ux) M. BOIE 2019-10-26 05:35:45
Update version to 0.71 6f66dc4dda14cc3b171b91cd1feb28a762cf469a Catalin(ux) M. BOIE 2019-10-26 05:32:56
selinux: rg_change_pass updates 8c09ed1e91dd80e5cfbb5c39064b21c35057b58d Catalin(ux) M. BOIE 2019-10-26 05:32:01
Cosmetic 4b3f0dd52126a4a0e58766699b2dcce83770f822 Catalin(ux) M. BOIE 2019-10-26 05:31:35
Rework rg_git_merge because it failed dc8dc39ac4235e9f6d4b9f7f6981bf9c4a10bc5f Catalin(ux) M. BOIE 2019-10-26 05:30:48
Compariso script updates d56371208be824b919259f807d9e8aee41f74c4a Catalin(ux) M. BOIE 2019-10-26 05:30:09
css updates e051981b55d28a8f37ff6aff9425e99912ff34da Catalin(ux) M. BOIE 2019-10-26 05:29:45
Comparison updates e7a2d2b92380f1c4946ccd54113f1ca1b9b7216b Catalin(ux) M. BOIE 2019-10-26 05:29:03
TODO update 25ee0cf19af35ff1c9a273528bf60f40be987dfe Catalin(ux) M. BOIE 2019-10-26 05:28:44
History update 86c0575fd1ce8b8dd7729c909b7b45e488729f87 Catalin(ux) M. BOIE 2019-10-26 05:28:27
Big rework for rg_exec/rg_exec2 6b962257e2494217bcd528bcdbb39544b3809c14 Catalin(ux) M. BOIE 2019-10-26 05:28:09
Be more explicit and specify exactly the ssh command instead of 'ssh ... totp' 3750e02fc5a0d75ba274c6ae9757e3d582348f51 Catalin(ux) M. BOIE 2019-10-25 02:54:52
Activating gzip compression in nginx sample file 60a153c84f1a8ee68c4008d2cb512d3016c50499 Catalin(ux) M. BOIE 2019-10-25 02:33:13
totp: urlencode parameters when calling qrencode 0b16e22978a8b5488e8f435a538dec07bb515476 Catalin(ux) M. BOIE 2019-10-19 03:53:20
/run/rocketgit-fpm/ -> /run to not create the dir 13ff6e91698260ba5a41591275fa915e33baebc9 Catalin(ux) M. BOIE 2019-10-01 16:08:43
Compute repo disk size only for not deleted repos 551d1798802853e5af1e12a1908cc10fbc432d17 Catalin(ux) M. BOIE 2019-09-30 22:08:27
Commit 53364f40abda9cdab63a961e230bedb3c2dfcb67 - pool sample: removed comments
Author: Catalin(ux) M. BOIE
Author date (UTC): 2019-10-29 15:12
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2019-10-29 15:12
Parent(s): 599df94445a9396fdc1cc0cc43df50838db973ae
Signer:
Signing key:
Signing status: N
Tree: 3e6dbc946cd208ba8ef21ed8b17f76dcd004a31f
File Lines added Lines deleted
samples/pool.conf 0 397
File samples/pool.conf changed (mode: 100644) (index d0dde67..5cbd588)
1 ; Start a new pool named 'rocketgit'.
2 ; the variable $pool can we used in any directive and will be replaced by the
3 ; pool name ('rocketgit' here)
4 1 [rocketgit] [rocketgit]
5
6 ; Per pool prefix
7 ; It only applies on the following directives:
8 ; - 'slowlog'
9 ; - 'listen' (unixsocket)
10 ; - 'chroot'
11 ; - 'chdir'
12 ; - 'php_values'
13 ; - 'php_admin_values'
14 ; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
15 ; Note: This directive can also be relative to the global prefix.
16 ; Default Value: none
17 ;prefix = /path/to/pools/$pool
18
19 ; Unix user/group of processes
20 ; Note: The user is mandatory. If the group is not set, the default user's group
21 ; will be used.
22 ; RPM: apache Choosed to be able to access some dir as httpd
23 2 user = rocketgit user = rocketgit
24 ; RPM: Keep a group allowed to write in log dir.
25 3 group = rocketgit group = rocketgit
26
27 ; The address on which to accept FastCGI requests.
28 ; Valid syntaxes are:
29 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
30 ; a specific port;
31 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
32 ; a specific port;
33 ; 'port' - to listen on a TCP socket to all IPv4 addresses on a
34 ; specific port;
35 ; '[::]:port' - to listen on a TCP socket to all addresses
36 ; (IPv6 and IPv4-mapped) on a specific port;
37 ; '/path/to/unix/socket' - to listen on a unix socket.
38 ; Note: This value is mandatory.
39 4 listen = /run/rocketgit.sock listen = /run/rocketgit.sock
40
41 ; Set listen(2) backlog.
42 ; Default Value: 65535
43 ;listen.backlog = 65535
44
45 ; Set permissions for unix socket, if one is used. In Linux, read/write
46 ; permissions must be set in order to allow connections from a web server.
47 ; Default Values: user and group are set as the running user
48 ; mode is set to 0660
49 ;listen.owner = nobody
50 ;listen.group = nobody
51 ;listen.mode = 0660
52
53 ; When POSIX Access Control Lists are supported you can set them using
54 ; these options, value is a comma separated list of user/group names.
55 ; When set, listen.owner and listen.group are ignored
56 5 listen.acl_users = apache,nginx listen.acl_users = apache,nginx
57 ;listen.acl_groups =
58
59 ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
60 ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
61 ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
62 ; must be separated by a comma. If this value is left blank, connections will be
63 ; accepted from any ip address.
64 ; Default Value: any
65 6 listen.allowed_clients = 127.0.0.1 listen.allowed_clients = 127.0.0.1
66
67 ; Specify the nice(2) priority to apply to the pool processes (only if set)
68 ; The value can vary from -19 (highest priority) to 20 (lower priority)
69 ; Note: - It will only work if the FPM master process is launched as root
70 ; - The pool processes will inherit the master process priority
71 ; unless it specified otherwise
72 ; Default Value: no set
73 ; process.priority = -19
74
75 ; Choose how the process manager will control the number of child processes.
76 ; Possible Values:
77 ; static - a fixed number (pm.max_children) of child processes;
78 ; dynamic - the number of child processes are set dynamically based on the
79 ; following directives. With this process management, there will be
80 ; always at least 1 children.
81 ; pm.max_children - the maximum number of children that can
82 ; be alive at the same time.
83 ; pm.start_servers - the number of children created on startup.
84 ; pm.min_spare_servers - the minimum number of children in 'idle'
85 ; state (waiting to process). If the number
86 ; of 'idle' processes is less than this
87 ; number then some children will be created.
88 ; pm.max_spare_servers - the maximum number of children in 'idle'
89 ; state (waiting to process). If the number
90 ; of 'idle' processes is greater than this
91 ; number then some children will be killed.
92 ; ondemand - no children are created at startup. Children will be forked when
93 ; new requests will connect. The following parameter are used:
94 ; pm.max_children - the maximum number of children that
95 ; can be alive at the same time.
96 ; pm.process_idle_timeout - The number of seconds after which
97 ; an idle process will be killed.
98 ; Note: This value is mandatory.
99 7 pm = dynamic pm = dynamic
100
101 ; The number of child processes to be created when pm is set to 'static' and the
102 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
103 ; This value sets the limit on the number of simultaneous requests that will be
104 ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
105 ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
106 ; CGI. The below defaults are based on a server without much resources. Don't
107 ; forget to tweak pm.* to fit your needs.
108 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
109 ; Note: This value is mandatory.
110 8 pm.max_children = 50 pm.max_children = 50
111
112 ; The number of child processes created on startup.
113 ; Note: Used only when pm is set to 'dynamic'
114 ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
115 9 pm.start_servers = 5 pm.start_servers = 5
116
117 ; The desired minimum number of idle server processes.
118 ; Note: Used only when pm is set to 'dynamic'
119 ; Note: Mandatory when pm is set to 'dynamic'
120 10 pm.min_spare_servers = 5 pm.min_spare_servers = 5
121
122 ; The desired maximum number of idle server processes.
123 ; Note: Used only when pm is set to 'dynamic'
124 ; Note: Mandatory when pm is set to 'dynamic'
125 11 pm.max_spare_servers = 10 pm.max_spare_servers = 10
126
127 ; The number of seconds after which an idle process will be killed.
128 ; Note: Used only when pm is set to 'ondemand'
129 ; Default Value: 10s
130 ;pm.process_idle_timeout = 10s;
131 12 pm.process_idle_timeout = 30s; pm.process_idle_timeout = 30s;
132
133 ; The number of requests each child process should execute before respawning.
134 ; This can be useful to work around memory leaks in 3rd party libraries. For
135 ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
136 ; Default Value: 0
137 ;pm.max_requests = 500
138
139 ; The URI to view the FPM status page. If this value is not set, no URI will be
140 ; recognized as a status page. It shows the following informations:
141 ; pool - the name of the pool;
142 ; process manager - static, dynamic or ondemand;
143 ; start time - the date and time FPM has started;
144 ; start since - number of seconds since FPM has started;
145 ; accepted conn - the number of request accepted by the pool;
146 ; listen queue - the number of request in the queue of pending
147 ; connections (see backlog in listen(2));
148 ; max listen queue - the maximum number of requests in the queue
149 ; of pending connections since FPM has started;
150 ; listen queue len - the size of the socket queue of pending connections;
151 ; idle processes - the number of idle processes;
152 ; active processes - the number of active processes;
153 ; total processes - the number of idle + active processes;
154 ; max active processes - the maximum number of active processes since FPM
155 ; has started;
156 ; max children reached - number of times, the process limit has been reached,
157 ; when pm tries to start more children (works only for
158 ; pm 'dynamic' and 'ondemand');
159 ; Value are updated in real time.
160 ; Example output:
161 ; pool: www
162 ; process manager: static
163 ; start time: 01/Jul/2011:17:53:49 +0200
164 ; start since: 62636
165 ; accepted conn: 190460
166 ; listen queue: 0
167 ; max listen queue: 1
168 ; listen queue len: 42
169 ; idle processes: 4
170 ; active processes: 11
171 ; total processes: 15
172 ; max active processes: 12
173 ; max children reached: 0
174 ;
175 ; By default the status page output is formatted as text/plain. Passing either
176 ; 'html', 'xml' or 'json' in the query string will return the corresponding
177 ; output syntax. Example:
178 ; http://www.foo.bar/status
179 ; http://www.foo.bar/status?json
180 ; http://www.foo.bar/status?html
181 ; http://www.foo.bar/status?xml
182 ;
183 ; By default the status page only outputs short status. Passing 'full' in the
184 ; query string will also return status for each pool process.
185 ; Example:
186 ; http://www.foo.bar/status?full
187 ; http://www.foo.bar/status?json&full
188 ; http://www.foo.bar/status?html&full
189 ; http://www.foo.bar/status?xml&full
190 ; The Full status returns for each process:
191 ; pid - the PID of the process;
192 ; state - the state of the process (Idle, Running, ...);
193 ; start time - the date and time the process has started;
194 ; start since - the number of seconds since the process has started;
195 ; requests - the number of requests the process has served;
196 ; request duration - the duration in µs of the requests;
197 ; request method - the request method (GET, POST, ...);
198 ; request URI - the request URI with the query string;
199 ; content length - the content length of the request (only with POST);
200 ; user - the user (PHP_AUTH_USER) (or '-' if not set);
201 ; script - the main script called (or '-' if not set);
202 ; last request cpu - the %cpu the last request consumed
203 ; it's always 0 if the process is not in Idle state
204 ; because CPU calculation is done when the request
205 ; processing has terminated;
206 ; last request memory - the max amount of memory the last request consumed
207 ; it's always 0 if the process is not in Idle state
208 ; because memory calculation is done when the request
209 ; processing has terminated;
210 ; If the process is in Idle state, then informations are related to the
211 ; last request the process has served. Otherwise informations are related to
212 ; the current request being served.
213 ; Example output:
214 ; ************************
215 ; pid: 31330
216 ; state: Running
217 ; start time: 01/Jul/2011:17:53:49 +0200
218 ; start since: 63087
219 ; requests: 12808
220 ; request duration: 1250261
221 ; request method: GET
222 ; request URI: /test_mem.php?N=10000
223 ; content length: 0
224 ; user: -
225 ; script: /home/fat/web/docs/php/test_mem.php
226 ; last request cpu: 0.00
227 ; last request memory: 0
228 ;
229 ; Note: There is a real-time FPM status monitoring sample web page available
230 ; It's available in: @EXPANDED_DATADIR@/fpm/status.html
231 ;
232 ; Note: The value must start with a leading slash (/). The value can be
233 ; anything, but it may not be a good idea to use the .php extension or it
234 ; may conflict with a real PHP file.
235 ; Default Value: not set
236 ;pm.status_path = /status
237
238 ; The ping URI to call the monitoring page of FPM. If this value is not set, no
239 ; URI will be recognized as a ping page. This could be used to test from outside
240 ; that FPM is alive and responding, or to
241 ; - create a graph of FPM availability (rrd or such);
242 ; - remove a server from a group if it is not responding (load balancing);
243 ; - trigger alerts for the operating team (24/7).
244 ; Note: The value must start with a leading slash (/). The value can be
245 ; anything, but it may not be a good idea to use the .php extension or it
246 ; may conflict with a real PHP file.
247 ; Default Value: not set
248 ;ping.path = /ping
249
250 ; This directive may be used to customize the response of a ping request. The
251 ; response is formatted as text/plain with a 200 response code.
252 ; Default Value: pong
253 ;ping.response = pong
254
255 ; The access log file
256 ; Default: not set
257 ;access.log = log/$pool.access.log
258
259 ; The access log format.
260 ; The following syntax is allowed
261 ; %%: the '%' character
262 ; %C: %CPU used by the request
263 ; it can accept the following format:
264 ; - %{user}C for user CPU only
265 ; - %{system}C for system CPU only
266 ; - %{total}C for user + system CPU (default)
267 ; %d: time taken to serve the request
268 ; it can accept the following format:
269 ; - %{seconds}d (default)
270 ; - %{miliseconds}d
271 ; - %{mili}d
272 ; - %{microseconds}d
273 ; - %{micro}d
274 ; %e: an environment variable (same as $_ENV or $_SERVER)
275 ; it must be associated with embraces to specify the name of the env
276 ; variable. Some exemples:
277 ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
278 ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
279 ; %f: script filename
280 ; %l: content-length of the request (for POST request only)
281 ; %m: request method
282 ; %M: peak of memory allocated by PHP
283 ; it can accept the following format:
284 ; - %{bytes}M (default)
285 ; - %{kilobytes}M
286 ; - %{kilo}M
287 ; - %{megabytes}M
288 ; - %{mega}M
289 ; %n: pool name
290 ; %o: output header
291 ; it must be associated with embraces to specify the name of the header:
292 ; - %{Content-Type}o
293 ; - %{X-Powered-By}o
294 ; - %{Transfert-Encoding}o
295 ; - ....
296 ; %p: PID of the child that serviced the request
297 ; %P: PID of the parent of the child that serviced the request
298 ; %q: the query string
299 ; %Q: the '?' character if query string exists
300 ; %r: the request URI (without the query string, see %q and %Q)
301 ; %R: remote IP address
302 ; %s: status (response code)
303 ; %t: server time the request was received
304 ; it can accept a strftime(3) format:
305 ; %d/%b/%Y:%H:%M:%S %z (default)
306 ; %T: time the log has been written (the request has finished)
307 ; it can accept a strftime(3) format:
308 ; %d/%b/%Y:%H:%M:%S %z (default)
309 ; %u: remote user
310 ;
311 ; Default: "%R - %u %t \"%m %r\" %s"
312 ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
313
314 ; The log file for slow requests
315 ; Default Value: not set
316 ; Note: slowlog is mandatory if request_slowlog_timeout is set
317 13 slowlog = /var/log/php-fpm/rocketgit-slow.log slowlog = /var/log/php-fpm/rocketgit-slow.log
318
319 ; The timeout for serving a single request after which a PHP backtrace will be
320 ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
321 ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
322 ; Default Value: 0
323 ;request_slowlog_timeout = 0
324 14 request_slowlog_timeout = 2s request_slowlog_timeout = 2s
325
326 ; The timeout for serving a single request after which the worker process will
327 ; be killed. This option should be used when the 'max_execution_time' ini option
328 ; does not stop script execution for some reason. A value of '0' means 'off'.
329 ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
330 ; Default Value: 0
331 ;request_terminate_timeout = 0
332
333 ; Set open file descriptor rlimit.
334 ; Default Value: system defined value
335 ;rlimit_files = 1024
336
337 ; Set max core size rlimit.
338 ; Possible Values: 'unlimited' or an integer greater or equal to 0
339 ; Default Value: system defined value
340 ;rlimit_core = 0
341
342 ; Chroot to this directory at the start. This value must be defined as an
343 ; absolute path. When this value is not set, chroot is not used.
344 ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
345 ; of its subdirectories. If the pool prefix is not set, the global prefix
346 ; will be used instead.
347 ; Note: chrooting is a great security feature and should be used whenever
348 ; possible. However, all PHP paths will be relative to the chroot
349 ; (error_log, sessions.save_path, ...).
350 ; Default Value: not set
351 ;chroot =
352
353 ; Chdir to this directory at the start.
354 ; Note: relative path can be used.
355 ; Default Value: current directory or / when chroot
356 ;chdir = /var/www
357
358 ; Redirect worker stdout and stderr into main error log. If not set, stdout and
359 ; stderr will be redirected to /dev/null according to FastCGI specs.
360 ; Note: on highloaded environement, this can cause some delay in the page
361 ; process time (several ms).
362 ; Default Value: no
363 ;catch_workers_output = yes
364
365 ; Clear environment in FPM workers
366 ; Prevents arbitrary environment variables from reaching FPM worker processes
367 ; by clearing the environment in workers before env vars specified in this
368 ; pool configuration are added.
369 ; Setting to "no" will make all environment variables available to PHP code
370 ; via getenv(), $_ENV and $_SERVER.
371 ; Default Value: yes
372 ;clear_env = no
373
374 ; Limits the extensions of the main script FPM will allow to parse. This can
375 ; prevent configuration mistakes on the web server side. You should only limit
376 ; FPM to .php extensions to prevent malicious users to use other extensions to
377 ; exectute php code.
378 ; Note: set an empty value to allow all extensions.
379 ; Default Value: .php
380 ;security.limit_extensions = .php .php3 .php4 .php5
381
382 ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
383 ; the current environment.
384 ; Default Value: clean env
385 ;env[HOSTNAME] = $HOSTNAME
386 ;env[PATH] = /usr/local/bin:/usr/bin:/bin
387 ;env[TMP] = /tmp
388 ;env[TMPDIR] = /tmp
389 ;env[TEMP] = /tmp
390
391 ; Additional php.ini defines, specific to this pool of workers. These settings
392 ; overwrite the values previously defined in the php.ini. The directives are the
393 ; same as the PHP SAPI:
394 ; php_value/php_flag - you can set classic ini defines which can
395 ; be overwritten from PHP call 'ini_set'.
396 ; php_admin_value/php_admin_flag - these directives won't be overwritten by
397 ; PHP call 'ini_set'
398 ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
399
400 ; Defining 'extension' will load the corresponding shared extension from
401 ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
402 ; overwrite previously defined php.ini values, but will append the new value
403 ; instead.
404
405 ; Note: path INI options can be relative and will be expanded with the prefix
406 ; (pool, global or @prefix@)
407
408 ; Default Value: nothing is defined by default except the values in php.ini and
409 ; specified at startup with the -d argument
410 ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
411 ;php_flag[display_errors] = off
412 15 php_admin_value[error_log] = /var/log/php-fpm/rocketgit-error.log php_admin_value[error_log] = /var/log/php-fpm/rocketgit-error.log
413 16 php_admin_flag[log_errors] = on php_admin_flag[log_errors] = on
414 17 php_admin_value[memory_limit] = 128M php_admin_value[memory_limit] = 128M
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main