summaryrefslogtreecommitdiffstats
path: root/.examples
diff options
context:
space:
mode:
authorNico Kaiser <nico.kaiser@boerse-go.de>2018-12-19 12:39:06 +0100
committerNico Kaiser <nico@kaiser.me>2019-01-21 16:55:55 +0100
commitf3524791d9b8082fe244e5d5d9e2b744f187937e (patch)
treebf64ec44e7027b18a79f73815eb5bec71854cad6 /.examples
parentcb71d98f7261b834d679ad690f522ae3e6694c28 (diff)
Fix woff2 files in nginx examples
Since some versions of Nextcloud, fonts are served as woff2, which is not forwarded to index.php by the supplied nginx.conf. This leads to nginx returning the dynamic index page instead of the static fonts. Signed-off-by: Nico Kaiser <nico@kaiser.me>
Diffstat (limited to '.examples')
-rw-r--r--.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf2
-rw-r--r--.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf2
4 files changed, 4 insertions, 4 deletions
diff --git a/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
index 26660646..eca9db99 100644
--- a/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
@@ -125,7 +125,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
- location ~ \.(?:css|js|woff|svg|gif)$ {
+ location ~ \.(?:css|js|woff2?|svg|gif)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
index 26660646..eca9db99 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
@@ -125,7 +125,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
- location ~ \.(?:css|js|woff|svg|gif)$ {
+ location ~ \.(?:css|js|woff2?|svg|gif)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
index 26660646..eca9db99 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
@@ -125,7 +125,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
- location ~ \.(?:css|js|woff|svg|gif)$ {
+ location ~ \.(?:css|js|woff2?|svg|gif)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
index 26660646..eca9db99 100644
--- a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
@@ -125,7 +125,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
- location ~ \.(?:css|js|woff|svg|gif)$ {
+ location ~ \.(?:css|js|woff2?|svg|gif)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to