Fix nextcloud https redirect

In the provided nginx server configuration for nextcloud, http
connections don't always redirect to https, so this was fixed.
This commit is contained in:
A Farzat 2021-07-27 00:28:17 +09:00
parent d451f9d197
commit abc6b82e4a
1 changed files with 1 additions and 3 deletions

View File

@ -52,9 +52,7 @@ server {
listen [::]:80;
server_name <strong>yourwebsite.com</strong>;
location /nextcloud {
return 301 https://$server_name$request_uri;
}
return 301 https://$server_name$request_uri;
}
server {