Code Monkey home page Code Monkey logo

Comments (1)

tangrufus avatar tangrufus commented on June 4, 2024

This role makes 1 origin certificate per site on each web server. Generating origin certificate is fast and free, I don't think reusing them on multiple sites adds any benefits.

This example generates 1 origin certificate (on each web server) for all 4 domains.

wordpress_sites:
  example.com:
    site_hosts:
      - canonical: example.com
        redirects:
          - ww1.example.com
          - ww2.example.com
          - ww3.example.com
    cloudflare_origin_ca:
      hostnames:
        - example.com
        - '*.example.com'

This example generates 2 origin certificates (on each web server), 1 for each site.

wordpress_sites:
  example.com:
    site_hosts:
      - canonical: example.com
        redirects:
          - ww1.example.com
          - ww2.example.com
          - ww3.example.com
    cloudflare_origin_ca:
      hostnames:
        - example.com
        - '*.example.com'


  xxx.example.com:
    site_hosts:
      - canonical: xxx.example.com
        redirects:
          - xx1.example.com
          - xx2.example.com
          - xx3.example.com
    cloudflare_origin_ca:
      hostnames:
        - '*.example.com'

Is it not possible that we create one origin certificate defining example.com and *.example.com from the dashboard and this plugin picks that instead of creating a new one every time?

Not possible and not intended to.
If you must, use https://roots.io/trellis/docs/ssl/#manual

what exactly triggered the new certificates

During provision, if {{ nginx_ssl_path }}/cloudflare-origin-ca/{{ item.key }}.XXX is absent, this role generates new certificates.

Does Cloudflare limit the number of origin certificates creation?

Ask Cloudflare support. I haven't bump into any limiation.

And if by any chance referencing an old manually created certificate is possible, and if that would help.

If you must, use https://roots.io/trellis/docs/ssl/#manual


Learn more on https://discourse.roots.io/t/site-on-trellis-provisioned-do-droplet-subdom-site-on-2nd-droplet-cloudflare-oc/14516/6

from trellis-cloudflare-origin-ca.

Related Issues (11)

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.