11replicaCount : 2
2+
23resources :
34 limits :
45 memory : " 4Gi"
56 cpu : " 1000m"
67 requests :
78 memory : " 2Gi"
89 cpu : " 100m"
10+
911livenessProbe :
1012 enabled : false
1113readinessProbe :
@@ -193,6 +195,8 @@ extraEnvVars: &envVars
193195 value : $SOLR_ADMIN_PASSWORD
194196 - name : SOLR_COLLECTION_NAME
195197 value : hyku-demo
198+ - name : SOLR_COLLECTION_REPLICAS
199+ value : " 2"
196200 - name : SOLR_CONFIGSET_NAME
197201 value : hyku-demo-2
198202 - name : SOLR_HOST
@@ -209,6 +213,7 @@ extraEnvVars: &envVars
209213 value : $SENTRY_ENVIRONMENT
210214 - name : VALKYRIE_TRANSITION
211215 value : " true"
216+
212217worker :
213218 resources :
214219 limits :
@@ -282,6 +287,123 @@ global:
282287 hyraxName : hyku-demo-hyrax
283288
284289nginx :
285- enabled : false
286- service :
287- port : 80
290+ enabled : true
291+ resources :
292+ limits :
293+ memory : " 256Mi"
294+ cpu : " 100m"
295+ requests :
296+ memory : " 128Mi"
297+ cpu : " 20m"
298+ image :
299+ registry : ghcr.io
300+ repository : notch8/scripts/bitnamilegacy-nginx
301+ tag : 1.21.6-debian-11-r21
302+ serverBlock : |-
303+ upstream rails_app {
304+ server {{ .Values.global.hyraxName }};
305+ }
306+
307+ map ${DOLLAR}status ${DOLLAR}loggable {
308+ ~^444 0;
309+ default 1;
310+ }
311+
312+ log_format loki 'host=${DOLLAR}host ip=${DOLLAR}http_x_forwarded_for remote_user=${DOLLAR}remote_user [${DOLLAR}time_local] '
313+ 'request="${DOLLAR}request" status=${DOLLAR}status bytes=${DOLLAR}body_bytes_sent '
314+ 'referer="${DOLLAR}http_referer" agent="${DOLLAR}http_user_agent" request_time=${DOLLAR}request_time upstream_response_time=${DOLLAR}upstream_response_time upstream_response_length=${DOLLAR}upstream_response_length';
315+
316+ error_log /opt/bitnami/nginx/logs/error.log warn;
317+ #tcp_nopush on;
318+
319+ # Cloudflare ips see for refresh
320+ # https://support.cloudflare.com/hc/en-us/articles/200170786-Restoring-original-visitor-IPs-logging-visitor-IP-addresses
321+ # update list https://www.cloudflare.com/ips/
322+ set_real_ip_from 103.21.244.0/22;
323+ set_real_ip_from 103.22.200.0/22;
324+ set_real_ip_from 103.31.4.0/22;
325+ set_real_ip_from 104.16.0.0/13;
326+ set_real_ip_from 104.24.0.0/14;
327+ set_real_ip_from 108.162.192.0/18;
328+ set_real_ip_from 131.0.72.0/22;
329+ set_real_ip_from 141.101.64.0/18;
330+ set_real_ip_from 162.158.0.0/15;
331+ set_real_ip_from 172.64.0.0/13;
332+ set_real_ip_from 173.245.48.0/20;
333+ set_real_ip_from 188.114.96.0/20;
334+ set_real_ip_from 190.93.240.0/20;
335+ set_real_ip_from 197.234.240.0/22;
336+ set_real_ip_from 198.41.128.0/17;
337+ set_real_ip_from 2400:cb00::/32;
338+ set_real_ip_from 2606:4700::/32;
339+ set_real_ip_from 2803:f800::/32;
340+ set_real_ip_from 2405:b500::/32;
341+ set_real_ip_from 2405:8100::/32;
342+ set_real_ip_from 2a06:98c0::/29;
343+ set_real_ip_from 2c0f:f248::/32;
344+
345+ real_ip_header X-Forwarded-For;
346+ real_ip_recursive on;
347+ include /opt/bitnami/nginx/conf/conf.d/*.conf;
348+ server {
349+ listen 8080;
350+ server_name _;
351+ root /app/samvera/hyrax-webapp/public;
352+ index index.html;
353+
354+ client_body_in_file_only clean;
355+ client_body_buffer_size 32K;
356+ client_max_body_size 0;
357+ access_log /opt/bitnami/nginx/logs/access.log loki;
358+ # if=${DOLLAR}loggable;
359+
360+ sendfile on;
361+ send_timeout 300s;
362+
363+ include /opt/bitnami/nginx/conf/bots.d/ddos.conf;
364+ include /opt/bitnami/nginx/conf/bots.d/blockbots.conf;
365+
366+ location ~ (\.php|\.aspx|\.asp) {
367+ return 404;
368+ }
369+
370+ # deny requests for files that should never be accessed
371+ location ~ /\. {
372+ deny all;
373+ }
374+
375+ location ~* ^.+\.(rb|log)${DOLLAR} {
376+ deny all;
377+ }
378+
379+ # serve static (compiled) assets directly if they exist (for rails production)
380+ location ~ ^/(assets|packs|fonts|images|javascripts|stylesheets|swfs|system)/ {
381+ try_files ${DOLLAR}uri @rails;
382+
383+ # access_log off;
384+ gzip_static on; # to serve pre-gzipped version
385+
386+ expires max;
387+ add_header Cache-Control public;
388+
389+ # Some browsers still send conditional-GET requests if there's a
390+ # Last-Modified header or an ETag header even if they haven't
391+ # reached the expiry date sent in the Expires header.
392+ add_header Last-Modified "";
393+ add_header ETag "";
394+ break;
395+ }
396+
397+ # send non-static file requests to the app server
398+ location / {
399+ try_files ${DOLLAR}uri @rails;
400+ }
401+
402+ location @rails {
403+ proxy_set_header X-Real-IP ${DOLLAR}remote_addr;
404+ proxy_set_header X-Forwarded-For ${DOLLAR}proxy_add_x_forwarded_for;
405+ proxy_set_header Host ${DOLLAR}http_host;
406+ proxy_redirect off;
407+ proxy_pass http://rails_app;
408+ }
409+ }
0 commit comments