@@ -26,7 +26,7 @@ The machine you want to deploy LEAF-Writer on also needs to have `git` installed
12. Make sure that the default / placeholder website is removed. On Debian-based distributions you can generally just remove the symlink in the `/etc/nginx/sites-enabled` directory, on other systems you may have to edit a file called `nginx.conf`. If in doubt, consult the documentation of your operating system.
13. Copy the file `leafwriter.conf` in the directory `leafwriter-configuration-files/nginx-sample-conf` to the configuration directory for your nginx installation. On Debian-based systems this is `/etc/nginx/sites-available` on other distributions it may be something like `/etc/nginx/conf.d`. Make sure that the files in this directory are loaded by e.g. on Debian-based distributions adding a symlink in the `/etc/nginx/sites-enabled` directory. Open the file you just copied and adjust the `server_name` to point to the domain you want to serve LEAF-Writer on.
14. Reload nginx
15. Add the SSL-certificate. If you use certbot and nginx run: `sudo certbot -d docker.leafwriter-playground.users.h-da.cloud --nginx`
15. Add the SSL-certificate. If you use certbot and nginx run: `sudo certbot -d leafwriter.your-university.example.com --nginx`
16. Check if LEAF-Writer is reachable from the internet. On some distributions your web server may actually not have the permissions to talk to the locally served LEAF-Writer server. [This link](https://stackoverflow.com/questions/25235453/nginx-proxy-server-localhost-permission-denied) may help you to adjust the permissions.
17. To make LEAF-Writer truly useful and usable, you need to set up and identity (and storage) provider for your users. Read [Available Account Management and Storage Platforms](available-platforms) to see the available options and how to set them up.
...
...
@@ -57,7 +57,7 @@ LEAF-Writer can query a number of databases to link annotations to identifiers p
A sample configuration file for a nginx-based reverse proxy can be found in the folder `leafwriter-configuration-files/nginx-sample-conf` as part of the [configuration files repository](https://code.fbi.h-da.de/leaf-writer-x/dependencies/leafwriter-configuration-files). Since there are many different webservers that can be used as a reverse proxy, it is impossible to provide configuration files for all of them.
Independently of the actual server you are using, he following options have to be set:
Independently of the actual server you are using, the following options have to be set:
- Upstream source: `http://localhost:5000`
- Headers to be set by the proxy server:
-`Host`: Variable pointing to the hostname of the proxy server, e.g. `$host`