User Tools

Site Tools


Sidebar

linux:nginx:uwsgi-vhost.conf

This is the nginx config I use to run radicale (Cal/CardDAV-Server) via nginx. You will need to install uwsgi and configure nginx like this:

See also radicale for the radicale related configs.

# Force SSL
server {
    listen         80;
    server_name    <<DOMAIN>>;
    rewrite        ^ https://$server_name$request_uri? permanent;
}

server {
    listen 443;
    server_name     <<DOMAIN>>;
    root            <<PATH-TO-HTML>>;
    index           index.html index.htm;

    ssl on;
    ssl_certificate      <<PATH-TO-SSL-CERT>>;
    ssl_certificate_key  <<PATH-TO-SSL-KEY>>;

    include global/ssl.conf;

    add_header      X-Frame-Options deny;

    gzip_static            on;
    gzip_http_version      1.1;
    gzip_proxied           expired no-cache no-store private auth;
    gzip_disable           "MSIE [1-6]\.";
    gzip_vary              on;

    location / {
        include uwsgi_params;
	
	#PATH TO UWSGI-Socket f.e.:
        uwsgi_pass unix:///tmp/radicale.sock;
    }
}
linux/nginx/uwsgi-vhost.conf.txt · Last modified: 2015/01/08 16:22 by Nold