Options -Indexes
DirectoryIndex index.php

# Pass the Authorization header to PHP (needed by the build worker API)
RewriteEngine On
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Block hidden files
<FilesMatch "^\.">
  Require all denied
</FilesMatch>

<IfModule mod_php.c>
  php_value upload_max_filesize 64M
  php_value post_max_size 70M
</IfModule>
