relecture
This commit is contained in:
parent
6e7d393ea5
commit
703f2057b8
|
@ -75,8 +75,7 @@ Création de l'utilisateur PostgreSQL :
|
||||||
|
|
||||||
> **Note** : On donne les droits CREATEDB car GitLab doit faire un DROP DATABASE puis CREATE DATABASE lors de l'installation…
|
> **Note** : On donne les droits CREATEDB car GitLab doit faire un DROP DATABASE puis CREATE DATABASE lors de l'installation…
|
||||||
|
|
||||||
|
> **Note** : Pensez à conserver le mot de passe pour le mettre par la suite pour [GitLab CE](#gitlab-ce).
|
||||||
> **Note** : Pensez à conserver le mot de passe pour le mettre par la suite dans la configuration GitLab.
|
|
||||||
|
|
||||||
Création de l'extension `pg_trgm` :
|
Création de l'extension `pg_trgm` :
|
||||||
|
|
||||||
|
@ -193,12 +192,16 @@ email_display_name: GitLab foo
|
||||||
email_reply_to: gitlab@example.com
|
email_reply_to: gitlab@example.com
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Mettre le mot de passe PostgreSQL :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ cp config/secrets.yml.example config/secrets.yml
|
$ cp config/secrets.yml.example config/secrets.yml
|
||||||
$ sed -i "s@^# db_key_base:@db_key_base: PASSWORD@" config/secrets.yml
|
$ sed -i "s@^# db_key_base:@db_key_base: PASSWORD@" config/secrets.yml
|
||||||
$ chmod 600 config/secrets.yml
|
$ chmod 600 config/secrets.yml
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Ajuster les droits de certains répertoires :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ chmod -R u+rwX,go-w log/
|
$ chmod -R u+rwX,go-w log/
|
||||||
$ chmod -R u+rwX tmp/
|
$ chmod -R u+rwX tmp/
|
||||||
|
@ -211,19 +214,24 @@ $ chmod -R u+rwX shared/artifacts/
|
||||||
|
|
||||||
## Unicorn
|
## Unicorn
|
||||||
|
|
||||||
|
On initialise la configuration d'Unicorn :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ cp config/unicorn.rb.example config/unicorn.rb
|
$ cp config/unicorn.rb.example config/unicorn.rb
|
||||||
$ sed -i -e \
|
$ sed -i -e \
|
||||||
-e 's#/home/git#/home/gitlab-demo00#g' \
|
-e 's@/home/git@/home/foo@g' \
|
||||||
-e 's/listen "127.0.0.1:8080", :tcp_nopush => true/#listen "127.0.0.1:8080", :tcp_nopush => true/' \
|
-e 's/listen "127.0.0.1:8080", :tcp_nopush => true/#listen "127.0.0.1:8080", :tcp_nopush => true/' \
|
||||||
config/unicorn.rb
|
config/unicorn.rb
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
## Rack attack
|
||||||
|
|
||||||
## Configuration de Rack attack
|
On initialise la configuration de Rack::Attack (qui permet du filtrage / rate-limiting) :
|
||||||
```
|
|
||||||
|
~~~
|
||||||
$ cp config/initializers/rack_attack.rb{.example,}
|
$ cp config/initializers/rack_attack.rb{.example,}
|
||||||
```
|
~~~
|
||||||
|
|
||||||
### Configuration de GIT
|
### Configuration de GIT
|
||||||
```
|
```
|
||||||
$ git config --global core.autocrlf input
|
$ git config --global core.autocrlf input
|
||||||
|
|
Loading…
Reference in a new issue