Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ci Pkg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Ci Pkg
Commits
c301ec65
Commit
c301ec65
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update docs
parent
3729e881
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/10_Installation.md
+0
-62
0 additions, 62 deletions
docs/10_Installation.md
docs/20_Configuration.md
+61
-0
61 additions, 0 deletions
docs/20_Configuration.md
docs/30_Usage.md
+0
-0
0 additions, 0 deletions
docs/30_Usage.md
with
61 additions
and
62 deletions
docs/10_Installation.md
+
0
−
62
View file @
c301ec65
...
@@ -31,65 +31,3 @@ Example snippet
...
@@ -31,65 +31,3 @@ Example snippet
</Location>
</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
This diff is collapsed.
Click to expand it.
docs/20_Configuration.md
0 → 100644
+
61
−
0
View file @
c301ec65
## 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
This diff is collapsed.
Click to expand it.
docs/
2
0_Usage.md
→
docs/
3
0_Usage.md
+
0
−
0
View file @
c301ec65
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment