update
authorMichael Wallner <root@s201809.m6w6.name>
Sat, 9 Mar 2019 13:20:35 +0000 (14:20 +0100)
committerMichael Wallner <root@s201809.m6w6.name>
Sat, 9 Mar 2019 13:20:35 +0000 (14:20 +0100)
composer.json
composer.lock
config/app.ini
etc/apache2.conf
etc/fpm-pool.conf [new file with mode: 0644]
public/index.css

index a02fb47d9f9fa9d3f5f995c34d45c9b01d260102..eeb6728922d1735bd31aade047e0816a33306706 100644 (file)
@@ -26,6 +26,7 @@
                "m6w6/pharext.wiki": "dev-master",
                "m6w6/pq-gateway": "~2.1",
                "monolog/monolog": "^1.13",
-               "react/promise": "^2.2"
+               "react/promise": "^2.2",
+               "seebz/uri-template": "^1.1"
        }
 }
index 88c2fb4a898ee882b4c8ec03192a9e926320433e..75de0640c22eff00bd36bb0af1c0befc415734b0 100644 (file)
@@ -1,10 +1,10 @@
 {
     "_readme": [
         "This file locks the dependencies of your project to a known state",
-        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "hash": "4c205773e5fd669075b88ad8b8707029",
+    "content-hash": "c926d96f919fd6be117001853d061d17",
     "packages": [
         {
             "name": "league/plates",
@@ -56,7 +56,7 @@
                 "templating",
                 "views"
             ],
-            "time": "2015-07-09 02:14:40"
+            "time": "2015-07-09T02:14:40+00:00"
         },
         {
             "name": "m6w6/merry",
@@ -96,7 +96,7 @@
                 "container",
                 "merry"
             ],
-            "time": "2015-03-12 13:49:46"
+            "time": "2015-03-12T13:49:46+00:00"
         },
         {
             "name": "m6w6/pharext",
                 "package",
                 "phar"
             ],
-            "time": "2015-09-03 15:12:31"
+            "time": "2015-09-03T15:12:31+00:00"
         },
         {
             "name": "m6w6/pharext.wiki",
                 "reference": "master"
             },
             "type": "library",
-            "time": "2015-04-30 17:39:40"
+            "time": "2015-05-20T06:40:18+00:00"
         },
         {
             "name": "m6w6/pq-gateway",
                 "postgresql",
                 "pq"
             ],
-            "time": "2015-05-20 16:16:55"
+            "time": "2015-05-20T16:16:55+00:00"
         },
         {
             "name": "monolog/monolog",
                 "logging",
                 "psr-3"
             ],
-            "time": "2015-08-31 09:17:37"
+            "time": "2015-08-31T09:17:37+00:00"
         },
         {
             "name": "nikic/fast-route",
                 "router",
                 "routing"
             ],
-            "time": "2015-02-26 15:33:07"
+            "time": "2015-02-26T15:33:07+00:00"
         },
         {
             "name": "psr/log",
                 "psr",
                 "psr-3"
             ],
-            "time": "2012-12-21 11:40:51"
+            "time": "2012-12-21T11:40:51+00:00"
         },
         {
             "name": "rdlowrey/auryn",
                 "dic",
                 "ioc"
             ],
-            "time": "2015-08-26 16:31:48"
+            "time": "2015-08-26T16:31:48+00:00"
         },
         {
             "name": "react/promise",
                 }
             ],
             "description": "A lightweight implementation of CommonJS Promises/A for PHP",
-            "time": "2015-07-03 13:48:55"
+            "time": "2015-07-03T13:48:55+00:00"
+        },
+        {
+            "name": "seebz/uri-template",
+            "version": "1.1.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/Seebz/uri-template.git",
+                "reference": "f2d7076e9c729a9dcb338ffe5de8e0df73034f38"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/Seebz/uri-template/zipball/f2d7076e9c729a9dcb338ffe5de8e0df73034f38",
+                "reference": "f2d7076e9c729a9dcb338ffe5de8e0df73034f38",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=5.3.0"
+            },
+            "require-dev": {
+                "php": ">=5.6.0",
+                "phpunit/phpunit": "^5.7"
+            },
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "2.0.x-dev"
+                }
+            },
+            "autoload": {
+                "files": [
+                    "src/functions.php"
+                ]
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "WTFPL"
+            ],
+            "authors": [
+                {
+                    "name": "Sébastien Corne",
+                    "email": "sebastien@seebz.net",
+                    "homepage": "http://seebz.net"
+                }
+            ],
+            "description": "Implementation of RFC 6570 (URI Template) in a single PHP function",
+            "homepage": "https://github.com/Seebz/uri-template",
+            "keywords": [
+                "URI Template",
+                "rfc6570"
+            ],
+            "time": "2018-02-22T13:25:48+00:00"
         }
     ],
     "packages-dev": [],
index 24178f7926eeae8515f1664a9b976906fc1f2296..5c886710844bbc18cf1c652d84ace6d0b3fc7828 100644 (file)
@@ -33,7 +33,7 @@ session.cache_limiter = ""
 session.cache_expire = 0
 
 pq.flags = 0
-pq.dsn = "user=pharext host=localhost"
+pq.dsn = "user=pharext"
 
 log.github.streamhandler.handler = StreamHandler
 log.github.streamhandler.args[] = ../logs/github.log
@@ -46,4 +46,4 @@ github.hook.url = https://pharext.ngrok.io/src/pharext.org.git/public/github/hoo
 github.hook.insecure_ssl = 1
 github.hook.use_basic_auth = ngrok
 
-ngrok.command = ngrok
\ No newline at end of file
+ngrok.command = ngrok
index 5f9c3e298dc51b12289b59c5ec8528952bfd9c26..db864b77dfc9766f3c60d84f4ee0768c5d73f9c4 100644 (file)
                AllowOverride All
                Require all granted
                SetEnv APP_ENVIRONMENT production
+               RemoveHandler .phar
                <Files "*.phar">
+                       SetHandler default-handler
                        ForceType application/phar
                </Files>
+               <FilesMatch ".+\.ph(p|tml)$">
+                       SetHandler "proxy:unix:/run/php/php-pharext.sock|fcgi://localhost"
+               </FilesMatch>
        </Directory>
 </Macro>
 
diff --git a/etc/fpm-pool.conf b/etc/fpm-pool.conf
new file mode 100644 (file)
index 0000000..2cb60e1
--- /dev/null
@@ -0,0 +1,43 @@
+; Start a new pool named 'www'.
+; the variable $pool can be used in any directive and will be replaced by the
+; pool name ('www' here)
+[pharext]
+
+user = www-data
+group = www-data
+
+listen = /run/php/php-$pool.sock
+listen.owner = www-data
+listen.group = www-data
+;listen.mode = 0660
+
+pm = dynamic
+pm.max_children = 20
+pm.start_servers = 2
+pm.min_spare_servers = 1
+pm.max_spare_servers = 3
+;pm.max_requests = 500
+
+slowlog = /var/log/php-fpm.log.slow
+request_slowlog_timeout = 30
+
+; Depth of slow log stack trace.
+; Default Value: 20
+;request_slowlog_trace_depth = 20
+
+; The timeout for serving a single request after which the worker process will
+; be killed. This option should be used when the 'max_execution_time' ini option
+; does not stop script execution for some reason. A value of '0' means 'off'.
+; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
+; Default Value: 0
+;request_terminate_timeout = 0
+
+; Chdir to this directory at the start.
+; Note: relative path can be used.
+; Default Value: current directory or / when chroot
+chdir = /var/www/$pool
+
+; Note: set an empty value to allow all extensions.
+; Default Value: .php
+security.limit_extensions = .php
+
index 8253ebd3f1f25da0b377ab3441a7f55401b3cbef..57172dfb1ab75a69a921be95f18d6fe4dfbfa350 100644 (file)
@@ -1,3 +1,6 @@
+html .label {
+       padding-top: 0.6em;
+}
 .footer {
     position: fixed;
     bottom: 0px;