info@tijmenschoemaker.nl

LinuxServer.io Organizr with SSL

A small howto, changing the default HTTP of Organizr docker to HTTPS.

Put you certificate in the Organizr/keys folders.
I used my NAS LetsEncrypt certificate for this via

mv /volume1/docker/Organizr/keys/cert.crt /volume1/docker/Organizr/keys/cert.crt.org
mv /volume1/docker/Organizr/keys/cert.key /volume1/docker/Organizr/keys/cert.key.org
cp /usr/syno/etc/certificate/_archive/foldername/cert.pem /volume1/docker/Organizr/keys/cert.crt
cp /usr/syno/etc/certificate/_archive/foldername/privkey.pem /volume1/docker/Organizr/keys/cert.key
chown admin:users /volume1/docker/Organizr/keys/{cert.crt,cert.key}

Then edit the default nginx site configuration (i used nano for this)

nano /volume1/docker/Organizr/nginx/site-confs/default

Since i have my Organizr running on a none-default port, i used that server setup to run on SSL. I added the word ssl on line 1, then i added line 6/9 for SSL connfig.

server {
        listen 8310 ssl default_server;
        root /config/www/Dashboard;
        index index.html index.htm index.php;

        ssl_certificate /config/keys/cert.crt;
        ssl_certificate_key /config/keys/cert.key;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!MD5;

        server_name _;
        client_max_body_size 0;

        location / {
                try_files $uri $uri/ /index.html /index.php?$args =404;
        }
        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                # With php5-cgi alone:
                fastcgi_pass 127.0.0.1:9000;
                # With php5-fpm:
                #fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                include /etc/nginx/fastcgi_params;

        }
}