-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need https option for aws stream #335
Comments
you can do that defining object scheme object url option as it written in the doc. |
I have included setObjectUrlOption to my services like this:
But how do I then use that in my config? and will it use the appropriate https/http when needed automatically? My config looks like this (including knp_gaufrette). At the moment it works but just uses http for everything so it seems helios.imagine.cache.resolver.amazon_s3 is getting ignored?
Thanks |
Honestly saying I dont know. I've never used this functionality. I believe by setting |
At the moment it doesn't get used at all though. Do I need to use the service I have created called 'helios.imagine.cache.resolver.amazon_s3' somewhere? |
it has to work if you have configured everything as you posted it here. You added a tag to the resolver service and after in configuration you used the name from the tag. This way it is expected to work |
Sorry, yes my bad, it does work, but only when I try it on the live server which has https. It also makes all image paths start with https. So, what I need to figure out is how to conditionally use https or http depending if it's a secure page or not. Do I have two services, one with Thanks |
Do you have secure and insecure pages on the same environment? Like you actually need to use the correct protocol, or is it just the lack of https on your dev env? |
I have secure and insecure pages. I thought I had resolved the issue but alas no. Here is an updated services and config now with cacert which I needed to resolve a curl error certificate error described here - http://docs.aws.amazon.com/aws-sdk-php/guide/latest/faq.html First I installed an up to date curl cacert.pem on my server Then I have the following in my services.yml
And then in my config
|
I have updated above comment as I haven't resolved the issue. I have secure and insecure pages, hence my problem. |
moving to 1.1 milestone as 0.20 is not supported any more. |
@PaddyLock I am going through all issues to sort and prioritise. Is this still an issue for you? Since this is so old, please open a new issue if that is the case and we will prioritise accordingly. Thanks a lot! :) |
Hi, I need to be able to produce paths to https where needed for paths generated to AWS S3
At the moment I can only pull images from s3 over http.
My config is like so:
The path produced for my image is like this:
http://helios-production.s3.amazonaws.com/product/uploads/images/products/bluebell-2.jpg
The issue is, I have no control over the http or https part. I would like to either produce a path with the correct scheme depending on if it's a secure page or not or like this:
//helios-production.s3.amazonaws.com/product/uploads/images/products/bluebell-2.jpg
ideally both.
Thanks
The text was updated successfully, but these errors were encountered: