diff --git a/Dockerfile b/Dockerfile index 5abd56d..d96c1bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ RUN apk --no-cache add nginx && \ $RSYNC_COPY /build/conf/nginx/app.conf "$NGINX_APP_CONF_FILE" && \ $RSYNC_COPY /build/conf/nginx/daemon "$NGINX_CONFD_DIR/" && \ $RSYNC_COPY /build/conf/nginx/server "$NGINX_CONFD_DIR/" && \ + $RSYNC_COPY /build/data/.well-known "$APP_WEBROOT/" && \ $RSYNC_COPY /build/scripts/ /scripts/ && \ chmod -R 755 /scripts diff --git a/build/conf/nginx/server/google-prefetch-config.conf b/build/conf/nginx/server/google-prefetch-config.conf index e69de29..d5eb51e 100644 --- a/build/conf/nginx/server/google-prefetch-config.conf +++ b/build/conf/nginx/server/google-prefetch-config.conf @@ -0,0 +1,5 @@ +# Private Prefetch Proxy +# https://developer.chrome.com/blog/private-prefetch-proxy/ +location /.well-known/traffic-advice { + types { } default_type "application/trafficadvice+json; charset=utf-8"; +} diff --git a/build/scripts/pre-init.d/11_populate_well_known.sh b/build/scripts/pre-init.d/11_populate_well_known.sh deleted file mode 100644 index 0b21abe..0000000 --- a/build/scripts/pre-init.d/11_populate_well_known.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -$RSYNC_COPY /build/data/.well-known "$APP_WEBROOT"