File README.SUSE.md of Package privatebin

PrivateBin on SUSE
==================

This package is meant to run with php-fpm to be Apparmor protected.

## Apache vhost configuration

This is how the vhost configuration should look like:

    <VirtualHost _default_:443>
        <IfModule mod_apparmor.c>
            AADefaultHatName privatebin
        </IfModule>

        ServerName example.com:443

        DocumentRoot "/srv/www/webapps/privatebin/public"

        ErrorLog    /var/log/apache2/example.com-error_log
        TransferLog /var/log/apache2/example.com-access_log

        <Directory "/srv/www/webapps/privatebin/public">
            Options -Indexes +FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        DirectoryIndex index.php
        # Redirect to the php-fpm proxy
        <FilesMatch \.php$>
            SetHandler "proxy:unix:/run/php-fpm/fpm-privatebin.socket|fcgi://localhost/"
        </FilesMatch>

        SSLEngine On
        SSLUseStapling On
        SSLCertificateFile      /etc/letsencrypt/live/example.com/cert.pem
        SSLCertificateKeyFile   /etc/letsencrypt/live/example.com/privkey.pem
        SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
    </VirtualHost>
openSUSE Build Service is sponsored by