From c1f644975767eec54db7a44dadbf8734033ebcc7 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Thu, 30 Apr 2020 02:16:50 +0300 Subject: [PATCH] Nextcloud. README.md added. --- nextcloud/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nextcloud/README.md diff --git a/nextcloud/README.md b/nextcloud/README.md new file mode 100644 index 0000000..7186a6a --- /dev/null +++ b/nextcloud/README.md @@ -0,0 +1,30 @@ +# Configuration + +## Serve HTTP from the container + +By default NextCloud internal Nginx config has redirects from internal 80 port +to 443 (HTTPS). +So if you want to reverse-proxy Nextcloud, you'll need to have a plain HTTP +connection to the Nextcloud. + +Example of `/config/nginx/site-confs/default` changes: + +``` +#server { +# listen 80; +# listen [::]:80; +# server_name _; +# return 301 https://$host$request_uri; +#} +server { + #listen 443 ssl http2; + listen 80; + listen [::]:80; + #listen [::]:443 ssl http2; + server_name _; + #ssl_certificate /config/keys/cert.crt; + #ssl_certificate_key /config/keys/cert.key; +``` + +You'll have access to the Nextcloud Nginx config after first run of Nextcloud +container. Don't forget to configure `/config` bind mount. \ No newline at end of file