Mercurial > hg > digilib
view doc/src/site/markdown/server-setup.md @ 1662:4ad90af7a242
updated version numbers.
author | Robert Casties <r0bcas7@gmail.com> |
---|---|
date | Tue, 21 Nov 2017 17:57:34 +0100 |
parents | 28df291d4e26 |
children | 6d5e04a54848 |
line wrap: on
line source
# Server setups for digilib There are a variety of ways to deploy digilib on different server configurations for production sites. Here are some examples. ## nginx as proxy This is an example configuration for `nginx` as a proxy for a single instance of digilib (listening on port `8080`) that handles transport encryption and restricts access to sensitive data to the gateway of a local network (`1.2.3.4`). ```nginx server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name digilib.example.org; # this certificate chain shall *not* include the root certificate: ssl_certificate /etc/ssl/certs/digilib.example.org.pem; ssl_certificate_key /etc/ssl/private/digilib.example.org.key; include /etc/nginx/proxy_params; location ~* .*/(dlConfig|dlRequest).jsp$ { allow 1.2.3.4; deny all; proxy_pass http://localhost:8080; } location / { proxy_pass http://localhost:8080; } } ``` ## Resources - the [nginx documentation](nginx.org/en/docs/)