Skip to content

Commit

Permalink
Added DEPLOYMENT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelynch committed Jul 12, 2019
1 parent 52995e3 commit 4100903
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
DEPLOYMENT
==========

Use this as a basis for ansiblising it


The following setup is required on the nginx container:

Add the load_module line to

/etc/nginx/nginx.conf

load_module modules/ngx_http_js_module.so;

Create a directory /etc/nginx/js and install the ocfl.js in it

/etc/nginx/js/ocfl.js

To do this manually, I've been doing this to get around the nginx container
not having an editor

> cp ocfl.js /mnt/nginx.conf
> attachNginx.sh
root@5a25369ace28:/# cd /etc/nginx
root@5a25369ace28:/etc/nginx# mkdir js
root@5a25369ace28:/etc/nginx# mv ./conf.d/ocfl.js ./js/
root@5a25369ace28:/etc/nginx# cp nginx.conf ./conf.d/nginx.conf.main
// then go back to the vagrant and edit the config file to ad the load_module
> vi /mnt/nginx.conf/nginx.conf.main
root@5a25369ace28:/etc/nginx# cp ./conf.d/nginx.conf.main nginx.conf




/etc/nginx/conf.d/ocfl.conf




0 comments on commit 4100903

Please sign in to comment.