Skip to content

Commit

Permalink
Set nginx confs to point at prod solr
Browse files Browse the repository at this point in the history
  • Loading branch information
alepbloyd committed Jan 9, 2024
1 parent 30ea28a commit 12d34a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions nginx_conf/scholarspace-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ server {
server_name ${SERVER_NAME};
root /opt/scholarspace/scholarspace-hyrax/public;


location /solr/${SOLR_CORE_PROD}/select/ {
location /solr/${SOLR_CORE}/select/ {

limit_except GET { deny all; }

Expand All @@ -16,7 +15,7 @@ server {
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;

proxy_pass http://solr-hyrax:8983/solr/${SOLR_CORE_PROD}/select/;
proxy_pass http://solr-hyrax:8983/solr/${SOLR_CORE}/select/;
}

ssl_certificate /opt/scholarspace/certs/${NGINX_CERTIFICATE};
Expand Down
4 changes: 2 additions & 2 deletions nginx_conf/scholarspace.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server {
server_name ${SERVER_NAME};
root /opt/scholarspace/scholarspace-hyrax/public;

location /solr/${SOLR_CORE_DEV}/select/ {
location /solr/${SOLR_CORE}/select/ {

limit_except GET { deny all; }

Expand All @@ -15,7 +15,7 @@ server {
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;

proxy_pass http://solr-hyrax:8983/solr/${SOLR_CORE_DEV}/select/;
proxy_pass http://solr-hyrax:8983/solr/${SOLR_CORE}/select/;
}

# The following deploys your Ruby/Python/Node.js/Meteor app on Passenger.
Expand Down

0 comments on commit 12d34a5

Please sign in to comment.