1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

Force https

Actually we can access to friendica without encryption. So force the connexion to be always encrypted.
This commit is contained in:
Josue-T 2018-01-12 22:23:14 +01:00 committed by GitHub
parent 58774643d2
commit b956e9b389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,10 @@
location __PATH__ { location __PATH__ {
alias __FINALPATH__/; alias __FINALPATH__/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
rewrite ^ https://$server_name$request_uri? permanent; rewrite ^ https://$server_name$request_uri? permanent;
#allow uploads up to 20MB in size #allow uploads up to 20MB in size