From 07de53ca041b33bfdd6c0d146ef69c205e7c1af9 Mon Sep 17 00:00:00 2001 From: MiguelNdeCarvalho Date: Wed, 12 Aug 2020 13:18:28 +0100 Subject: [PATCH 1/2] Nginx: Add rewrite rule for WebFinger --- root/defaults/default | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/defaults/default b/root/defaults/default index 29c548c..351b3b3 100644 --- a/root/defaults/default +++ b/root/defaults/default @@ -48,6 +48,9 @@ server { location = /.well-known/caldav { return 301 $scheme://$host:$server_port/remote.php/dav; } + location = /.well-known/webfinger { + return 301 $scheme://$host:$server_port/public.php?service=webfinger; + } client_max_body_size 10G; fastcgi_buffers 64 4K; gzip on; From 98170c8111d2ce356224a823f9603c465b1c2162 Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 12 Aug 2020 10:23:05 -0400 Subject: [PATCH 2/2] various updates to default site conf --- README.md | 1 + readme-vars.yml | 1 + root/defaults/default | 10 ++++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3dd6cf8..b69205c 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **12.08.20:** - Various updates to default site config, including added support for webfinger (existing users should delete `/config/nginx/site-confs/default` and restart the container). * **03.06.20:** - Rebasing to alpine 3.12 * **03.06.20:** - Add php7-bcmath and php7-fileinfo * **31.05.20:** - Add aliases for occ and updater.phar diff --git a/readme-vars.yml b/readme-vars.yml index 6449e26..f5821bb 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -70,6 +70,7 @@ app_setup_block: | # changelog changelogs: + - { date: "12.08.20:", desc: "Various updates to default site config, including added support for webfinger (existing users should delete `/config/nginx/site-confs/default` and restart the container)." } - { date: "03.06.20:", desc: "Rebasing to alpine 3.12" } - { date: "03.06.20:", desc: "Add php7-bcmath and php7-fileinfo" } - { date: "31.05.20:", desc: "Add aliases for occ and updater.phar" } diff --git a/root/defaults/default b/root/defaults/default index 351b3b3..524f8e4 100644 --- a/root/defaults/default +++ b/root/defaults/default @@ -51,6 +51,12 @@ server { location = /.well-known/webfinger { return 301 $scheme://$host:$server_port/public.php?service=webfinger; } + location = /.well-known/host-meta { + return 301 $scheme://$host:$server_port/public.php?service=host-meta; + } + location = /.well-known/host-meta.json { + return 301 $scheme://$host:$server_port/public.php?service=host-meta-json; + } client_max_body_size 10G; fastcgi_buffers 64 4K; gzip on; @@ -68,7 +74,7 @@ server { location ~ ^\/(?:\.|autotest|occ|issue|indie|db_|console) { deny all; } - location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) { + location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) { fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; set $path_info $fastcgi_path_info; try_files $fastcgi_script_name =404; @@ -108,7 +114,7 @@ server { add_header Referrer-Policy no-referrer; access_log off; } - location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ { + location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ { try_files $uri /index.php$request_uri; access_log off; }