archive/README.md
Michael Wesemann a936975feb -
2022-04-08 13:36:54 +02:00

1.3 KiB

Archive

Contact: archive@fhi.mpg.de

Installation

Prerequisites:

Step 1: Build your basic filesystem

# mkdir /a /a/etc /a/bin /a/data /a/cache /a/tmp /a/log
# chmod 777 /a/data /a/cache /a/tmp /a/log

# git clone https://github.com/fhimpg/archive.git
# cp archive/src/* /a/www
# cp archive/archive.conf /a/www
# cp archive/support/dropzone.* /a/www
# cp -r archive/support/json-viewer /a/www
# cp archive/archive.rewrite.conf /a/etc

Step 2: Build your database

  • install database (mariadb or MySQL)
  • add a database user
  • create a empty database
  • import database schema:
# mysql archive < archive.sql

Step 3: Configure a virtual host in your webserver, eg:

<VirtualHost *:443>
  ServerName archive.my.domain:443

  DocumentRoot /a/www

  <Directory /a/www>
    AllowOverride All
  </Directory>

  SSLEngine on
  SSLCertificateFile /etc/acme.sh/my.domain/fullchain.cer
  SSLCertificateKeyFile /etc/acme.sh/my.domain/my.domain.key

  RewriteEngine On
  Include /a/etc/archive.rewrite.conf

</VirtualHost>