From c301ec6595c4e2b99cdfcc3b42477790fd7dd05d Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 26 Apr 2022 13:31:19 +0200
Subject: [PATCH] update docs

---
 docs/10_Installation.md           | 62 -------------------------------
 docs/20_Configuration.md          | 61 ++++++++++++++++++++++++++++++
 docs/{20_Usage.md => 30_Usage.md} |  0
 3 files changed, 61 insertions(+), 62 deletions(-)
 create mode 100644 docs/20_Configuration.md
 rename docs/{20_Usage.md => 30_Usage.md} (100%)

diff --git a/docs/10_Installation.md b/docs/10_Installation.md
index 1096a5b..0e8f5b9 100644
--- a/docs/10_Installation.md
+++ b/docs/10_Installation.md
@@ -31,65 +31,3 @@ Example snippet
 
     </Location>
 ```
-
-## Configuration of a secret on server
-
-if [approot]/public_html/ copy inc_config.php.dist to inc_config.php.dist.
-set a secret behind key apikey.
-
-It means: this is a shared secret between this server and all your application servers.
-
-It is not realized yet to use a secret per application.
-
-```php
-$approot=dirname(__DIR__);
-return array(
-    
-    // define a secret aka api key
-    'apikey'=>'our-package-server-secret',
-
-    // packages to deliver where files from ci server are synched
-    'packagedir'=>$approot.'/packages',
-    
-    // max age of request ... client and server need to be in sync
-    'maxage'=>60,
-
-    // force that a hash can be used only once
-    // a side effect is that fast repeat or simultanius requests
-    // will be denied.
-    'onetimesecret'=>true,
-
-    // filesize of lock file with stored hashed before starting garbage collection
-    // 10.000 byte are reached after 114 req
-    'maxlockfilesize'=>10000,
-    
-    // tmp dir to store used hashes
-    'tmpdir'=>$approot.'/tmp',
-
-    // allow directory listing when accessing a path of a package
-    // true is required to fetch all packages
-    'showdircontent'=>true,
-);
-```
-
-## Prepare receive of packages
-
-* Create an deployment account package server that can be used to be connected 
-  via SSH by the ci server
-* add the public key of www-data of the ci server into
-  /home/deployment/.ssh/authorized keys
-* Set permissions that the deployment user can write into
-  /var/www/cipkg.example.com/packages/
-  and the user of the webeservice can read it 
-  `chown deployment:apache /var/www/cipkg.example.com/packages/` and
-  `chmod 750 /var/www/cipkg.example.com/packages/`
-
-## Ci server: add a sync target
-
-TODO
-
-In the config of CI web server add a sync target. Use
-
-* the deployment user as ssh
-* the fqdn as hostname
-* the defined *packagedir* in your inc_config.php as target directory
diff --git a/docs/20_Configuration.md b/docs/20_Configuration.md
new file mode 100644
index 0000000..8088eb9
--- /dev/null
+++ b/docs/20_Configuration.md
@@ -0,0 +1,61 @@
+## Configuration on server
+
+if [approot]/public_html/ copy inc_config.php.dist to inc_config.php.dist.
+set a secret behind key apikey.
+
+It means: this is a shared secret between this server and all your application servers.
+
+It is not realized yet to use a secret per application.
+
+```php
+$approot=dirname(__DIR__);
+return array(
+    
+    // define a secret aka api key
+    'apikey'=>'our-package-server-secret',
+
+    // packages to deliver where files from ci server are synched
+    'packagedir'=>$approot.'/packages',
+    
+    // max age of request ... client and server need to be in sync
+    'maxage'=>60,
+
+    // force that a hash can be used only once
+    // a side effect is that fast repeat or simultanius requests
+    // will be denied.
+    'onetimesecret'=>true,
+
+    // filesize of lock file with stored hashed before starting garbage collection
+    // 10.000 byte are reached after 114 req
+    'maxlockfilesize'=>10000,
+    
+    // tmp dir to store used hashes
+    'tmpdir'=>$approot.'/tmp',
+
+    // allow directory listing when accessing a path of a package
+    // true is required to fetch all packages
+    'showdircontent'=>true,
+);
+```
+
+## Prepare receive of packages
+
+* Create an deployment account package server that can be used to be connected 
+  via SSH by the ci server
+* add the public key of www-data of the ci server into
+  /home/deployment/.ssh/authorized keys
+* Set permissions that the deployment user can write into
+  /var/www/cipkg.example.com/packages/
+  and the user of the webeservice can read it 
+  `chown deployment:apache /var/www/cipkg.example.com/packages/` and
+  `chmod 750 /var/www/cipkg.example.com/packages/`
+
+## Ci server: add a sync target
+
+TODO
+
+In the config of CI web server add a sync target. Use
+
+* the deployment user as ssh
+* the fqdn as hostname
+* the defined *packagedir* in your inc_config.php as target directory
diff --git a/docs/20_Usage.md b/docs/30_Usage.md
similarity index 100%
rename from docs/20_Usage.md
rename to docs/30_Usage.md
-- 
GitLab