freebsd:seafile_with_apache_https
Seafile on FreeBSD with Apache HTTPS
DNS/IP Setup
Since we will be setting up HTTPS it makes sense to start off with setting the correct hostname, IP address, and
DNS. Let's start with
/etc/rc.conf
-
Set the IP
- /etc/rc.conf
...
ifconfig_em0="inet X.X.X.X netmask X.X.X.X" #you should replace "em0" with the correct interface name
...
Next edit
/etc/hosts
- /etc/hosts
X.X.X.X seabsd.change.me # set to the values you set in /etc/rc.conf
Make sure you set your
DNS s the
LetsEncyrpt can find your server by the hostname you set.
Install Seafile Packges
This one is pretty easy just run:
pkg install seafile-server seahub
In our case, we are going to use SQLite so we will run the script
“/usr/local/www/haiwen/seafile-server-latest/setup-seafile.sh”/usr/local/www/haiwen/seafile-server-latest/setup-seafile.sh
Next run “/usr/local/www/haiwen/seafile-server-latest/reset-admin.sh” to setup the inital admin user
/usr/local/www/haiwen/seafile-server-latest/reset-admin.sh
E-mail address: changeme@change.me
Password:
Password (again):
Superuser created successfully.
Obtaining LetsEncyrpt Certificates
Apache Setup
Set Automatic Startup
We end where we started “/etc/rc.conf”. Add the following to enable startup of seafile,seahub, and apache
- /etc/rc.conf
...
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
seafile_enable="YES"
seahub_enable="YES"
apache24_enable="YES"
...
Finally either restart or run the following to get everything running:
service seafile start
service seahub start
service apache24 start
freebsd/seafile_with_apache_https.txt · Last modified: 2019/02/22 11:55 by tschulz