This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install terraform and run "terraform apply" to use this | |
provider "aws" { | |
region = "eu-west-2" | |
} | |
data "aws_availability_zones" "all" {} | |
variable "web_port" { | |
description = "The port that will serve HTTP requests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This line needs to be called after initialize but before run | |
$app['upload'] = $app->extend( | |
'upload', | |
function ($handler, $app) { | |
if ($app['request']->get('contenttype') && $app['request']->get('id')) { | |
$handler->setPrefix("/{$app['request']->get('contenttype')}/{$app['request']->get('id')}/"); | |
} |