[Koha-bugs] [Bug 13799] Add base for building RESTful API
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 12 12:11:37 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13799
Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #40093|0 |1
is obsolete| |
--- Comment #62 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 40101
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40101&action=edit
Bug 13799 - Nginx reverse proxy config baseline for Koha REST API. Tweaking
needed to work with makefile.
Uses a self-signed SSL-certificate to service at port 444 by default.
Reverse proxies to 127.0.0.1:8080 (expecting hypnotoad to be listening)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
¤¤ Koha API Nginx configuration ¤¤
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Deploy the Nginx configuration
------------------------------
Run make to populate the koha-nginx-kohaapi.conf
link to the /etc/nginx/sites-available/ -directory
..$ ln -s /home/koha/koha-dev/etc/koha-nginx-kohaapi.conf
/etc/nginx/sites-available/kohaapi
and enable with command
..$ ln -s /etc/nginx/sites-available/kohaapi /etc/nginx/sites-enabled/kohaapi
Disable the default config
..$ rm /etc/nginx/sites-enabled/default
Create a openssl self-signed certificate or use your own.
---------------------------------------------------------
..$ cd /etc/nginx
..$ mkdir ssl
..$ chmod 400 ssl
..$ cd ssl
..$ openssl req -x509 -sha256 -newkey rsa:2048 -keyout key.pem.secure -out
cert.pem -days 720
..$ openssl rsa -in key.pem.secure -out key.pem
..$ chmod 400 *
Restart nginx
..$ service nginx restart
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list