Comments (8)
Hi,
- Click "Permissions" -> "Edit bucket policy". This will open the "Bucket Policy Editor" (Basically a text-field).
- Copy the correct JSON snippet from https://github.com/codevise/pageflow/wiki/Zencoder-Bucket-Policies (Main or Output)
- Replace and placeholders with the full bucket name. (You can copy it from above in the same window.)
Hope this helps. I will update the wiki-page.
Greetings
from pageflow.
Great! Thanks a lot kioopi! I was looking for an additional section like "Permissions". There was no indication that it is actually INSIDE the permission section. The modified wiki entry is a lot better. :)
Zencoder configuration worked fine. For Amaazon S3 two more questions:
- Where in AWS S3 mgmt conosle do I find the proper values for "s3_host_name" and "s3_host_alias"?
- in
config/initializers/pageflow.rb
it says that hardcoding the values is not a good idea. I would tend to use ENV vars and dotenv. But question here: Is there a list of ENV vars to set? Which ENV var name stands for which configuration option? Is it simply named as in the file? For instance api_key, output_bucket, s3_host_name, secret_access_key etc... ?
from pageflow.
About the S3 conf:
Most of the info is hidden somehere in here: http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html
The gist is:
If your bucket is on a server in the eu (you picked "ireland" when creating the bucket) the s3_host_name
should be "s3-eu-west-1.amazonaws.com". (otherwise it's "s3.amazonaws.com", i think.)
The s3_host_alias
should be set to .<s3_host_name>:
"de-mycompany-pageflow-development.s3-website-eu-west-1.amazonaws.com"
This may seem redundant configuration, but can be used to set up CDN support.
I'll get back to point 2. later. I'm in a hurry, sorry.
from pageflow.
Thanks again. Fine for s3_host_name
. For the s3_host_alias
I've been puzzled because unlike what you state above the s3_host_name looks different to the host alias and also the bucket part is not identical:
bucket => 'com-example-pageflow-development' s3_host_name => 's3-eu-west-1.amazonaws.com' s3_host_alias => 'com-example-pageflow.s3-website-eu-west-1.amazonaws.com'
in alias the bucket part (as per your definition above) is com-example-pageflow whereas bucket is defined different (+ -development).
in alias the hostname part (as per your definition above) is s3-eu-west-1.amazonaws.com but is defined different ( + -website - +): s3-website-eu-west-1.amazonaws.com
Which leads to yet another confusion:
config.zencoder_options: output_bucket => 'com-example-pageflow-out'
config.paperclip_s3_default_options: bucket => 'com-example-pageflow-development'
Which differs to the naming convention proposed by "wiki/Setting-up-External-Services":
de-mycompany-pageflow-development
de-mycompany-pageflow-development-out
But based on your feedback I assume that I am fine when I set:
bucket => xyz
s3_host_alias = <bucket>.<s3_host_name>
config.zencoder_options:
output_bucket => xyz-out
s3_host_alias = <output_bucket>.<s3_host_name>
so only the "-website-" in the middle of the "s3_host_name" value for s3_host_alias
is not 100% clear to me. Can you help me out here?
And thanks again for also looking into # 2 (ENV var naming/list) once you find the time. :)
Cheers,
from pageflow.
Yes, i should have re-read what i've written. The -website-
is necessary in the s3_host_alias
So it's:
s3_host_name
= "s3-eu-west-1.amazonaws.com"
s3_host_alias
= ".s3-website-eu-west-1.amazonaws.com"
is always the full name of the bucket.
from pageflow.
Great. I corrected my config accordingly. Hardcoded for now (this playground is only meant for installation testing as of now). Once the list of ENV var names is published I'll improve it and close this issue. Thanks!
Still there is an issue with uploading an image (not the uploading itself but with the post-processing). I'll open another issue for that.
from pageflow.
Re Item 2: There is no such list. The naming and definition of the ENV variables is completely up to you and you'll have to wire up the ENV variables in the pageflow initializer yourself, passing them to the corresponding config options.
We decided not to couple the pageflow engine to a specific configuration method since it trends to depend heavily on your hosting choices.
from pageflow.
Ah okay, I see. Now i feel a bit stupid as it is kind of obvious. Thanks for the pointer though. Also the wiki could pot. link to a page that indicates how to access ENV vars in ruby for those of us how are more sysadmin-ish than ruby developers. But googleing helped a lot so I am pretty sure I'll manage that. :)
from pageflow.
Related Issues (20)
- Re-used images only show up in editor after reload HOT 5
- Couldnt login to [email protected] HOT 3
- 100% Encoding in progress (Video) HOT 2
- Video files do not get processed HOT 7
- Understanding Image Download HOT 5
- Customize default theme, especially header logo HOT 2
- Datawrapper Symbol map not rendering in Pageflow HOT 2
- Spacing block HOT 3
- Scroll indicator for chapters HOT 2
- Scroll arrow in the menu bar does not work HOT 2
- (Pageflow Next) Full screen for inline-images HOT 1
- Video rights are not displayed HOT 1
- Duplicate slides
- Minio instead of AWS S3? HOT 1
- Login not working after update to v15.8 HOT 1
- Categorise rights-popup HOT 1
- Missing spaces in the text block
- Activate full screen mode for all inline images
- Docker instructions/tutorial HOT 1
- Asset precompilation fails after pageflow-scrolled installation HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pageflow.