# PHP Configuration Overrides for Large File Uploads
php_value post_max_size 3072M
php_value memory_limit 4096M
php_value upload_max_filesize 3072M
php_value max_execution_time 300

<Files "config.php">
	Require all denied
</Files>

<Files "creds.php">
	Require all denied
</Files>

<FilesMatch "^\.env$">
  Order allow,deny
  Deny from all
</FilesMatch>

# Environment variables
# APP_ENV can be 'lab', 'staging', or 'prod'
SetEnv APP_ENV prod
SetEnv SITE_ENV onestep.quest
SetEnv USERNAME k8oah0s239pb

# Deny access to all Markdown files
<FilesMatch "\.md$">
	Require all denied
</FilesMatch>

# .htaccess for API pretty URLs
RewriteEngine On

# Only apply to requests under /api/
RewriteBase /api/

# If the request is not a real file or directory, route to api.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ api.php [QSA,L]
