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:
parent
58774643d2
commit
b956e9b389
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue