Unverified Commit 07347476 authored by William Tucker's avatar William Tucker Committed by GitHub
Browse files

Merge pull request #264 from ESGF/robots-txt

Updated health check endpoint and added an optional robots.txt
parents 846f98cc 3616573e
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -15,7 +15,10 @@ server {
    }

    # Health check
    location /thredds/fileServer/healthcheck {
    location /health {
        return 200;
    }
    location /thredds/fileServer/health {
        return 200;
    }

+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,11 @@ server {
        return 404;
    }

    # Health check
    location /health {
        return 200;
    }

    {% if auth_enabled %}
    location /verify {
        set $query '';
+7 −8
Original line number Diff line number Diff line
@@ -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;
    }

+2 −0
Original line number Diff line number Diff line
User-agent: *
Disallow: /
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
@@ -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
@@ -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