Skip to content

Commit

Permalink
Got a combination of config and js which works without connecting ngi…
Browse files Browse the repository at this point in the history
…nx to solr
  • Loading branch information
spikelynch committed Dec 4, 2019
1 parent 3d51d49 commit 314bcab
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions conf.d/ocfl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,21 @@ js_include js/ocfl.js;
server {
listen 8080;
server_name 0.0.0.0;
subrequest_output_buffer_size 16384;

set $ocfl_root /etc/share/nginx/html/ocfl;
set $ocfl_autoindex ro-crate-preview.html;
set $ocfl_repo_index index.json;
set $ocfl_files /etc/share/nginx/html/ocfl;
set $ocfl_index_file ro-crate-preview.html;

set $ocfl_err_not_found /error/404.html;
set $ocfl_err_pending /error/pending.html;

set $ocfl_page_size 20;

location /assets/ {
root /etc/share/nginx/html;
}

location /error/ {
root /etc/share/nginx/html;
location /migrate_ocfl/ {
autoindex on;
index CATALOG.html;
root $ocfl_files;
}

location /repo/ {
set $ocfl_repo migrate_ocfl;
set $ocfl_repo migrate_ocfl;
set $ocfl_path repo;
set $ocfl_versions off;
js_content ocfl;
}

location /migrate_ocfl/ {
autoindex on;
index CATALOG.html;
root $ocfl_root;
js_content ocfl;
}

location /solr/ {
Expand All @@ -43,12 +28,6 @@ server {
}


location /peppermint/ {
root /etc/share/nginx/html;
index index.html index.htm;
}


}


0 comments on commit 314bcab

Please sign in to comment.