Outils pour utilisateurs

Outils du site


calendrier

Ceci est une ancienne révision du document !


Héberger son calendrier

  • Radicale
  • Nginx
  • uWSGI

NGINX configuration

Fichier /etc/nginx/sites-enable/calendar.domaine.org.conf

server {
    server_name calendar.mondomaine.org;
    listen 443;

    ssl on;
    ssl_certificate /etc/ssl/cacert/mondomaine.org.pem;
    ssl_certificate_key /etc/ssl/cacert/mondomaine.org.key;
    location / {
        try_files $uri @proxy_to_app;
    }
    location @proxy_to_app {
        uwsgi_pass 127.0.0.1:3031;
        include uwsgi_params;
    }
}

uWSGI

Emperor mode, lancer avec la commande uwsgi –plugins python –emperor /etc/uwsgi/vassals/

# fichier /etc/uwsgi/vassals/calendar.ini
[uwsgi]
master = true
processes = 2 # Simple rule is no. of cores on machine
plugins = python
socket = 127.0.0.1:3031
chdir = /var/www/calendar.domaine.org
wsgi-file = /var/www/calendar.domaine.org/radicale.wsgi
module = calendar
logto = /var/log/uwsgi/%n.log
vacuum = true
uid = www-data

WSGI

Fichier /var/www/calendar.domaine.org/radicale.wsgi

import radicale
radicale.log.start()
application = radicale.Application()

calendrier.1386451623.txt.gz · Dernière modification: 2019/04/02 11:14 (modification externe)