Commit 99a7e1eb authored by William Tucker's avatar William Tucker
Browse files

Updated staticfiles config

parent 9a2beac4
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -4,14 +4,10 @@ server {
    listen       8080 default_server;
    server_name  _;

    # By default, return 404
    # Look for static files to serve
    location / {
        return 404;
    }

    # Disallow access to all dot-files
    location ~ /\. {
        return 404;
        root /var/www/html;
        autoindex off;
    }

    # Health checks
+3 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ metadata:
  name: {{ include "esgf.component.fullname" (list . "staticContent") }}
  labels: {{ include "esgf.component.labels" (list . "staticContent" $fileServer.labels) | nindent 4 }}
data:
{{- if $fileServer.robotsTxtEnabled -}}
  robots.txt: {{ tpl (.Files.Get "files/fileServer/robots.txt") . | quote }}
{{- end -}}
{{ if $fileServer.robotsTxtEnabled }}
  robots.txt: {{ (tpl (.Files.Get "files/fileServer/robots.txt") . | quote ) }}
{{ end }}
{{- end -}}