         proxy_cache static;
         try_files $uri =404;
     }
-
-    location ~ /.well-known {
-        allow all;
-    }
 }
    location ~ /\.ht {
        deny all;
    }

    location ~ /.well-known {
        allow all;
    }
}

server {

    listen 443 ssl http2;
    listen [::]:443 ssl http2;


# Redirect all HTTP trafic to HTTPS

server {
    listen 80;
    listen [::]:80;

    server_name *.polymyr.com;

    location ^~ /.well-known/acme-challenge/ {
        default_type "text/plain";
        root /tmp/letsencrypt-auto/;
    }

    location = /.well-known/acme-challenge/ {
        return 404;
    }

    location / {
        return 301 https://$server_name$request_uri;
    }
}

server {
