Logo Khaganat

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
fr:movim [2020/02/20 15:34] – [Daemon] Deedfr: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 
      
-  +  nano db.inc.php  
 +</code>
 ===== Droits =====   ===== Droits =====  
   chown www-data movim && chown www-data movim/public && chmod u+rwx movim   chown www-data movim && chown www-data movim/public && chmod u+rwx movim
Ligne 31: Ligne 33:
  
 ===== Nginx ===== ===== Nginx =====
 +<code>
 +server {
 +    listen 80;
 +    server_name movim.exemple.net;
  
 +    access_log      /var/log/nginx/movim_access.log;
 +    error_log       /var/log/nginx/movim_error.log info;
  
 +    root /var/www/movim/public/;
 +    index index.html index.php;
 +
 +    location ~ \.php$ {
 +        include snippets/fastcgi-php.conf;
 +        fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
 +    }
 +
 +    location /ws/ {
 +        proxy_pass http://localhost:8080/;
 +        proxy_http_version 1.1;
 +        proxy_set_header Upgrade $http_upgrade;
 +        proxy_set_header Connection "Upgrade";
 +        include proxy_params;
 +    }
 +}
 +</code>
 ===== Daemon ===== ===== Daemon =====
   sudo -u www-data php daemon.php start --url={public url of your pod} --port={port used by the daemon}    sudo -u www-data php daemon.php start --url={public url of your pod} --port={port used by the daemon} 
 +
 +
 +  nano /etc/systemd/system/movim.service
 +  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://movim.kagouille.fr/
 +Environment=WS_PORT=8080
 +EnvironmentFile=-/etc/default/movim
 +ExecStart=/usr/bin/php daemon.php start --url=${PUBLIC_URL} --port=${WS_PORT}
 +WorkingDirectory=/var/www/movim/
 +StandardOutput=syslog
 +SyslogIdentifier=movim
 +PIDFile=/run/movim.pid
 +Restart=on-failure
 +RestartSec=10
 +
 +[Install]
 +WantedBy=multi-user.target
 +
 +</code>
 +
 +  nano /etc/default/movim
 +<code>
 +# Configuration parameters for movim daemon startup
 +
 +# Public URL the Movim instance is reachable at
 +PUBLIC_URL=http://movim.kagouille.fr/
 +
 +# Port to use for WebSocket connection
 +WS_PORT=8080
 +
 +</code>
 +
  
 {{tag>brouillon xmpp sociaux}} {{tag>brouillon xmpp sociaux}}
CC Attribution-Share Alike 4.0 International Driven by DokuWiki
fr/movim.1582209287.txt.gz · Dernière modification : 2021/12/03 19:18 (modification externe)

Licences Mentions légales Accueil du site Contact