You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alex 7ebd80d792 Add 'server/' from commit '006c5fc2425f5aa060d2911c175dae6b6b1a19f3'
git-subtree-dir: server
git-subtree-mainline: b93fe69019
git-subtree-split: 006c5fc242
3 years ago
..
README.md Add 'server/' from commit '006c5fc2425f5aa060d2911c175dae6b6b1a19f3' 3 years ago
etebase.ini Add 'server/' from commit '006c5fc2425f5aa060d2911c175dae6b6b1a19f3' 3 years ago
etesync.ini Add 'server/' from commit '006c5fc2425f5aa060d2911c175dae6b6b1a19f3' 3 years ago
my.server.name.conf Add 'server/' from commit '006c5fc2425f5aa060d2911c175dae6b6b1a19f3' 3 years ago
uwsgi.service Add 'server/' from commit '006c5fc2425f5aa060d2911c175dae6b6b1a19f3' 3 years ago

README.md

Running etebase under nginx and uwsgi

This configuration assumes that etebase server has been installed in the home folder of a non privileged user called EtebaseUser following the instructions in https://github.com/etesync/server. Also that static files have been collected at /srv/http/etebase_server by running the following commands:

sudo mkdir -p /srv/http/etebase_server/static
sudo chown -R EtebaseUser /srv/http/etebase_server
sudo su EtebaseUser
cd /path/to/etebase
ln -s /srv/http/etebase_server/static static
./manage.py collectstatic

It is also assumed that nginx and uwsgi have been installed system wide by root, and that nginx is running as user/group www-data.

In this setup, uwsgi running as a systemd service as root creates a unix socket with read-write access to both EtebaseUser and nginx. It then drops its root privilege and runs etebase as EtebaseUser.

nginx listens on the https port (or a non standard port https port if desired), delivers static pages directly and for everything else, communicates with etebase over the unix socket.