... | ... | @@ -131,4 +131,70 @@ postgresql: &postgresql |
|
|
+ domain: 'mail.infomaniak.com'
|
|
|
* admins
|
|
|
- account: "your_admin_account"
|
|
|
- podmin_email: "your admin email" |
|
|
\ No newline at end of file |
|
|
- podmin_email: "your admin email"
|
|
|
|
|
|
|
|
|
## Création des unités systemd:
|
|
|
|
|
|
Créer **/etc/systemd/system/diaspora.target**
|
|
|
```
|
|
|
[Unit]
|
|
|
Description=Diaspora social network
|
|
|
Wants=postgresql.service
|
|
|
Wants=redis-server.service
|
|
|
After=redis-server.service
|
|
|
After=postgresql.service
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=multi-user.target
|
|
|
```
|
|
|
|
|
|
Créer **/etc/systemd/system/diaspora-web.service**
|
|
|
```
|
|
|
[Unit]
|
|
|
Description=Diaspora social network (unicorn)
|
|
|
PartOf=diaspora.target
|
|
|
StopWhenUnneeded=true
|
|
|
|
|
|
[Service]
|
|
|
User=diaspora
|
|
|
Environment=RAILS_ENV=production
|
|
|
WorkingDirectory=/srv/diaspora/diaspora
|
|
|
PIDFile=/srv/diaspora/diaspora/tmp/pids/web.pid
|
|
|
ExecStart=/bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E production"
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
|
Restart=always
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=diaspora.target
|
|
|
```
|
|
|
|
|
|
Créer **/etc/systemd/system/diaspora-web.service**
|
|
|
```
|
|
|
[Unit]
|
|
|
Description=Diaspora social network (sidekiq)
|
|
|
PartOf=diaspora.target
|
|
|
StopWhenUnneeded=true
|
|
|
|
|
|
[Service]
|
|
|
User=diaspora
|
|
|
Environment=RAILS_ENV=production
|
|
|
WorkingDirectory=/srv/diaspora/diaspora
|
|
|
ExecStart=/bin/bash -lc "bin/bundle exec sidekiq"
|
|
|
Restart=always
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=diaspora.target
|
|
|
```
|
|
|
|
|
|
Activer les unités:
|
|
|
```
|
|
|
# systemctl daemon-reload
|
|
|
# systemctl enable diaspora.target
|
|
|
# systemctl enable diaspora-web.service
|
|
|
# systemctl enable diaspora-sidekiq.service
|
|
|
```
|
|
|
Démarrer Diaspora
|
|
|
```
|
|
|
# systemctl restart diaspora.target
|
|
|
``` |