Giter Club home page Giter Club logo

Comments (5)

tawan avatar tawan commented on June 20, 2024

Hi @peterkle

Is this issue still present? The gem's only responses are either 200 or 403 or it passes the request through to the rails stack. Given the response is 301 then this means that the request is passed through. Since the agent string is correct, I suspect that the request originates from a job in the queue which has not been enqueued by this gem. I'd recommend to check this possibility.

Cheers and thanks for the submission,

Tawan

from active-elastic-job.

sauy7 avatar sauy7 commented on June 20, 2024

@peterkle Has your worker app been configured to force SSL in config/production.rb?

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true

If so, the request to localhost:80 is being 301 redirected to localhost:443.

from active-elastic-job.

btc avatar btc commented on June 20, 2024

@sauy7, this may be slightly off-topic, but I'm curious how you managed to force ssl behind the ELB while avoiding infinite redirect loop and also passing health checks. I'm assuming you're on Elastic Beanstalk with an auto-scaling group.

from active-elastic-job.

sauy7 avatar sauy7 commented on June 20, 2024

I didn't force SSL. I have a separate production_worker Rails environment for my worker tier. My Web tier (production environment) does force SSL. I've not yet setup health checks although that is something I will be looking at next (comments in issue #32 suggests a solution, do they not?)

Also off-topic: Whilst running separate Rails environments for the separate tiers may seem like overkill, I have other reasons for doing so (e.g., .ebextensions differ between the two tiers). I manage both tiers from a single codebase and branch and have created a custom rake task to deploy different artefacts (zip archives) from the same codebase (the worker tier excludes a subset of .ebextensions, the web tier excludes the cron.yml file).

from active-elastic-job.

tawan avatar tawan commented on June 20, 2024

@peterkle Do you enforce SSL in the worker tier? If so, make sure that you use the latest version of this gem. We had an issue before version 1.4.4 but it had been fixed now.

from active-elastic-job.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.