diff --git a/lutim.conf.template b/lutim.conf.template index 7ba98b4..f430b0e 100644 --- a/lutim.conf.template +++ b/lutim.conf.template @@ -13,5 +13,6 @@ provisionning => 100, # optional hosted_by => 'My super hoster Hoster logo', # optional tweet_card_via => '@framasky', # optional - max_file_size => 10485760 # optional, size in octets, you can write it 10*1024*1024 + max_file_size => 10485760, # optional, size in octets, you can write it 10*1024*1024 + https => 1, # optional, set to 1 if you use Lutim behind a secure web server }; diff --git a/templates/index.html.ep b/templates/index.html.ep index 80eff59..1c12e1a 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -1,13 +1,14 @@ % # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab: +% my $scheme = (defined(config('https')) && config('https')) ? 'https' : 'http';
% if (defined(flash('short'))) {
<%= flash('filename') %>
% } @@ -21,7 +22,7 @@