-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52995e3
commit 4100903
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|
||
|