var site = require('apostrophe-site')({
// This line is required and allows apostrophe-site to use require() and manage our NPM modules for us.
root: module,
shortName: 'www',
hostName: 'www',
title: 'www',
sessionSecret: 'apostrophe sandbox demo party',
adminPassword: 'demo',
address: '0.0.0.0',
port: 3000,
// Force a2 to prefix all of its URLs. It still
// listens on its own port, but you can configure
// your reverse proxy to send it traffic only
// for URLs with this prefix. With this option
// "/" becomes a 404, which is supposed to happen!
// prefix: '/test',
// If true, new tags can only be added by admins accessing
// the tag editor modal via the admin bar. Sometimes useful
// if your folksonomy has gotten completely out of hand
lockTags: false,
// Give users a chance to log in if they attempt to visit a page
// which requires login
secondChanceLogin: true,
locals: require('./lib/locals.js'),
// you can define lockups for areas here
// Here we define what page templates we have and what they will be called in the Page Types menu.
// For html templates, the 'name' property refers to the filename in ./views/pages, e.g. 'default'
// refers to '/views/pages/default.html'.
// The name property can also refer to a module, in the case of 'blog', 'map', 'events', etc.
pages: {
types: [
{ name: 'default', label: 'Default (Two Column)' },
{ name: 'home', label: 'Home Page' },
{ name: 'contact', label: 'Contact' }
]
},
// These are the modules we want to bring into the project.
modules: {
// Styles required by the new editor, must go FIRST
'apostrophe-editor-2': {},
'apostrophe-ui-2': {},
'apostrophe-browserify': {
files: ['./public/js/modules/_site.js']
},
uploadfs: {
backend: 's3',
// Get your credentials at aws.amazon.com
secret: 'SECRET_REMOVED',
key: 'KEY_REMOVED',
// You need to create your bucket first before using it here
// Go to aws.amazon.com
bucket: 'BUCKET_NAME_REMOVED',
// I recommend creating your buckets in a region with
// read-after-write consistency (not us-standard)
region: 'us-west-2'
// Required if you use copyImageIn
// tempPath: __dirname + '/temp',
// imageSizes: [
// {
// name: 'small',
// width: 320,
// height: 320
// },
// {
// name: 'medium',
// width: 640,
// height: 640
// },
// {
// name: 'large',
// width: 1140,
// height: 1140
// }
// ],
// Render up to 4 image sizes at once. Note this means 4 at once per call
// to copyImageIn. There is currently no built-in throttling of multiple calls to
// copyImageIn
// parallel: 4
}
},
// These are assets we want to push to the browser.
// The scripts array contains the names of JS files in /public/js,
// while stylesheets contains the names of LESS files in /public/css
assets: {
scripts: [ 'vendor/interact', 'site-compiled' ],
stylesheets: ['site']
}
});
{
"name": "www",
"version": "0.0.1",
"description": "DESCRIPTION_REMOVED",
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"repository": {
"type": "git",
"url": ""
},
"author": "AUTHOR_REMOVED",
"license": "BSD",
"dependencies": {
"apostrophe-browserify": "^0.5.5",
"apostrophe-editor-2": "0.5.x",
"apostrophe-site": "0.5.x",
"apostrophe-ui-2": "0.5.x",
"uploadfs": "1.1.x"
}
}
--
You received this message because you are subscribed to the Google Groups "apostrophenow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apostropheno...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I believe my region is correct. Amazon has changed their naming in their web interface though and I'm not sure how this impacts configuration.
I selected Oregon when setting up S3 and in the configuration I set it as us-west-2.
--
You received this message because you are subscribed to a topic in the Google Groups "apostrophenow" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/apostrophenow/cC9VbAsUazM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to apostropheno...@googlegroups.com.
Is there any way to get verbose feedback or logs from uploadfs that would contain the response from Amazon?