Bug 20582: Turn Koha into a Mojolicious application
[koha.git] / etc / nginx.conf
blob4701a9a6456efd2097ae6a1216cda30edcab84bf
1 # This config file assume you are using starman with the app.psgi that can be
2 # found in the root directory of Koha, and that it listens on ports 5000-5001
4 upstream intranet {
5     server 127.0.0.1:5000;
7 upstream opac {
8     server 127.0.0.1:5001;
11 server {
12     listen 80;
13     listen [::]:80;
15     server_name intranet.koha-dev; # CHANGEME
17     location / {
18         include proxy_params;
19         proxy_pass http://intranet;
20     }
23 server {
24     listen 80;
25     listen [::]:80;
27     server_name opac.koha-dev; # CHANGEME
29     location / {
30         include proxy_params;
31         proxy_pass http://opac;
32     }