-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
502 gateway error when accessing AWS S3 Browser Policy #378
Comments
@CaptainChemist did you find a solution? |
@zodern @CaptainChemist did you? its because these settings need to be added in the docker containers nginx server block
|
how we can solve this?, can we modified directly nginx, wish file needs to be modified? Thnaks |
I had to fork the github repo for jwilder/nginx-proxy then create an automated build on docker hub. Trigger the build and the go the the file at /src/modules/meteor/assets/templates/start.sh to reflect your docker hub repo. Don't forget to update your forked repo with config settings before triggering the automated build. |
Mup 1.4 allows customizing the nginx config. |
Hi everyone,
I am having an issue with the BrowserPolicy package in conjunction with Meteor-up that I hope someone can help me identify. When I add certain policies, it will work perfectly locally but it produces a
502 Bad Gateway
error when I deploy to my website. This is an example s3 policy that gives me trouble:BrowserPolicy.content.allowOriginForAll('*.amazonaws.com');
I am using meteor 1.4.2.3, node 7.1.0 and npm 4.0.2, but I was having this issue even with the older meteor version of 1.4.2. I am using the docker image
abernix/meteord:base
. I have also run into the 502 gateway error previously with the bootstrap cdn url but I was able to work around that by just hosting the font myself.If it is helpful, I am using my s3 to load images (jpg, svg). Clearing my browser cache or using a different browser does not help.
I have read that this problem can be due to the header size being too large and that it can be fixed by changing
proxy_buffer_size 8k;
in the/var/lib/docker/aufs/mnt/CHECKEDID/opt/nginx/conf/nginx.conf
file. Can anyone tell me how I can clone, modify, and publish a correctedabernix/meteord:base
docker image? I am happy to make it publicly available for others, I just don't really understand how docker images work.I checked a random svg file and the header size was 449 which is suspicious because when I compared the header size of a youtube embedded player which loads fine, that header size is 906 and there I used
BrowserPolicy.content.allowOriginForAll('www.youtube.com');
with no problems. Is it possible that this gateway error is something other than the header size?Thanks so much!
The text was updated successfully, but these errors were encountered: