Loading deploy/ansible/roles/data/templates/fileserver.conf.j2 +4 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,10 @@ server { } # Health check location /thredds/fileServer/healthcheck { location /health { return 200; } location /thredds/fileServer/health { return 200; } Loading deploy/ansible/roles/proxy/templates/proxy.conf.j2 +5 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,11 @@ server { return 404; } # Health check location /health { return 200; } {% if auth_enabled %} location /verify { set $query ''; Loading deploy/kubernetes/chart/files/fileServer/datasets.conf +7 −8 Original line number Diff line number Diff line Loading @@ -4,18 +4,17 @@ server { listen 8080 default_server; server_name _; # By default, return 404 # Look for static files to serve location / { return 404; root /var/www/html; autoindex off; } # Disallow access to all dot-files location ~ /\. { return 404; # Health checks location /health { return 200; } # Health check location /thredds/fileServer/healthcheck { location /thredds/fileServer/health { return 200; } Loading deploy/kubernetes/chart/files/fileServer/robots.txt 0 → 100644 +2 −0 Original line number Diff line number Diff line User-agent: * Disallow: / No newline at end of file deploy/kubernetes/chart/templates/fileServer/deployment.yaml +6 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,9 @@ spec: - name: nginx-conf mountPath: /etc/nginx/conf.d readOnly: true - name: static-content mountPath: /var/www/html readOnly: true # The shared log volume is only required if the access log sidecar is enabled {{- if $accessLogSidecar.enabled }} - name: nginx-logs Loading Loading @@ -138,6 +141,9 @@ spec: - name: nginx-conf configMap: name: {{ include "esgf.component.fullname" (list . "fileServer") }} - name: static-content configMap: name: {{ include "esgf.component.fullname" (list . "staticContent") }} # In order to use a read-only root filesystem, we mount emptyDirs in places # where files are expected to change - name: nginx-cache Loading Loading
deploy/ansible/roles/data/templates/fileserver.conf.j2 +4 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,10 @@ server { } # Health check location /thredds/fileServer/healthcheck { location /health { return 200; } location /thredds/fileServer/health { return 200; } Loading
deploy/ansible/roles/proxy/templates/proxy.conf.j2 +5 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,11 @@ server { return 404; } # Health check location /health { return 200; } {% if auth_enabled %} location /verify { set $query ''; Loading
deploy/kubernetes/chart/files/fileServer/datasets.conf +7 −8 Original line number Diff line number Diff line Loading @@ -4,18 +4,17 @@ server { listen 8080 default_server; server_name _; # By default, return 404 # Look for static files to serve location / { return 404; root /var/www/html; autoindex off; } # Disallow access to all dot-files location ~ /\. { return 404; # Health checks location /health { return 200; } # Health check location /thredds/fileServer/healthcheck { location /thredds/fileServer/health { return 200; } Loading
deploy/kubernetes/chart/files/fileServer/robots.txt 0 → 100644 +2 −0 Original line number Diff line number Diff line User-agent: * Disallow: / No newline at end of file
deploy/kubernetes/chart/templates/fileServer/deployment.yaml +6 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,9 @@ spec: - name: nginx-conf mountPath: /etc/nginx/conf.d readOnly: true - name: static-content mountPath: /var/www/html readOnly: true # The shared log volume is only required if the access log sidecar is enabled {{- if $accessLogSidecar.enabled }} - name: nginx-logs Loading Loading @@ -138,6 +141,9 @@ spec: - name: nginx-conf configMap: name: {{ include "esgf.component.fullname" (list . "fileServer") }} - name: static-content configMap: name: {{ include "esgf.component.fullname" (list . "staticContent") }} # In order to use a read-only root filesystem, we mount emptyDirs in places # where files are expected to change - name: nginx-cache Loading