Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
fr:movim [2020/02/20 15:30] – [Installation] Deed | fr:movim [2021/12/03 19:19] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 16: | Ligne 16: | ||
===== Database ===== | ===== Database ===== | ||
+ | <code bash> | ||
sudo -u postgres createuser -P movim_user | sudo -u postgres createuser -P movim_user | ||
sudo -u postgres createdb -O movim_user movim_db | sudo -u postgres createdb -O movim_user movim_db | ||
Ligne 22: | Ligne 23: | ||
cp db.example.inc.php db.inc.php | cp db.example.inc.php db.inc.php | ||
| | ||
- | | + | |
+ | </ | ||
===== Droits ===== | ===== Droits ===== | ||
chown www-data movim && chown www-data movim/ | chown www-data movim && chown www-data movim/ | ||
Ligne 31: | Ligne 33: | ||
===== Nginx ===== | ===== Nginx ===== | ||
+ | < | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name movim.exemple.net; | ||
+ | access_log | ||
+ | error_log | ||
+ | root / | ||
+ | index index.html index.php; | ||
+ | |||
+ | location ~ \.php$ { | ||
+ | include snippets/ | ||
+ | fastcgi_pass unix:/ | ||
+ | } | ||
+ | |||
+ | location /ws/ { | ||
+ | proxy_pass http:// | ||
+ | proxy_http_version 1.1; | ||
+ | proxy_set_header Upgrade $http_upgrade; | ||
+ | proxy_set_header Connection " | ||
+ | include proxy_params; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
===== Daemon ===== | ===== Daemon ===== | ||
- | sudo -s -u www-data | + | sudo -u www-data php daemon.php start --url={public url of your pod} --port={port used by the daemon} |
- | | + | |
+ | |||
+ | nano / | ||
+ | systemctl daemon-reload | ||
+ | systemctl enable movim.service | ||
+ | <code bash> | ||
+ | [Unit] | ||
+ | Description=Movim daemon | ||
+ | After=apache2.service network.target local-fs.target | ||
+ | |||
+ | [Service] | ||
+ | User=www-data | ||
+ | Type=simple | ||
+ | Environment=PUBLIC_URL=http:// | ||
+ | Environment=WS_PORT=8080 | ||
+ | EnvironmentFile=-/ | ||
+ | ExecStart=/ | ||
+ | WorkingDirectory=/ | ||
+ | StandardOutput=syslog | ||
+ | SyslogIdentifier=movim | ||
+ | PIDFile=/ | ||
+ | Restart=on-failure | ||
+ | RestartSec=10 | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | </ | ||
+ | |||
+ | nano / | ||
+ | < | ||
+ | # Configuration parameters for movim daemon startup | ||
+ | |||
+ | # Public URL the Movim instance is reachable at | ||
+ | PUBLIC_URL=http:// | ||
+ | |||
+ | # Port to use for WebSocket connection | ||
+ | WS_PORT=8080 | ||
+ | |||
+ | </ | ||
{{tag> | {{tag> |