# ln -s /usr/local/share/certs/ca-root-nss.crt /usr/local/www/owncloud/config/ca-bundle.crt
Thanks for this! Seemed to work.
You give a better explanation than what I read last night about HSTS
@Joshua Parker Ruehlig, but if it's not too much overhead and you do login to your ownCloud out in public, school, or even work. Why not add the line? Is there overhead i'm not aware of?
Here's what I added to the server block of my nginx.conf
Code:
add_header Strict-Transport-Security max-age=15768000;
Bonus for Residential Users
And in terms of HTTPS I host my ownCloud instance from a residential service line. So for me port 80 is blocked. To fix this I route traffic through a VPS. (I also host my main website on the VPS so it works out)
Added as a separate server block
Code:
server {
listen 80;
listen [::]:80;
server_name yourdomainname.com subdomain.domain.com;
return 301 https://$host$request_uri;
}
301 is a permanent redirect so the browser will remember to use HTTPS next time.
If you have another way of doing this i'd love to see/read it.[/code]