Code Monkey home page Code Monkey logo

Comments (6)

j1n6 avatar j1n6 commented on June 19, 2024

Did you use the default template?

EscapedId is only used for HAProxy frontend and backend naming. It shouldn't appeare in the ACL section. In your example, acl ::socketchat-host part is correct. hdr(host) -i ::socketchat.example.io should really be hdr(host) -i socketchat.example.io.

from bamboo.

MikeMichel avatar MikeMichel commented on June 19, 2024

I changed the template to my needs

acl {{ $app.EscapedId }}-host hdr(host) -i {{ $app.EscapedId }}.example.io
use_backend {{ $app.EscapedId }}-cluster if {{ $app.EscapedId }}-host

from bamboo.

j1n6 avatar j1n6 commented on June 19, 2024

This is the line in template: https://github.com/QubitProducts/bamboo/blob/master/config/haproxy_template.cfg#L52

You probably want to write something like this:

acl {{ $app.EscapedId }}-host hdr(host) -i {{ $appId }}.example.io
use_backend {{ $app.EscapedId }}-cluster if {{ $app.EscapedId }}-host

The complication is '$appId' in new Marathon app ID definition containing slash e.g. '/my-app'. What you want is really just 'my-app'.

This feature #27 might allow you to auto generate domains based on app id.

from bamboo.

j1n6 avatar j1n6 commented on June 19, 2024

And the documentation for how to use template should be improved.

from bamboo.

MikeMichel avatar MikeMichel commented on June 19, 2024

Yep, i was allready looking for the var which holds the app without any special chars but it's not there yet.

from bamboo.

j1n6 avatar j1n6 commented on June 19, 2024

This is probably related to feature request #28

from bamboo.

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.