# Plugin to add environment variables to the `site` object in Liquid templates

module Jekyll

  class EnvironmentVariablesGenerator < Generator

    def generate(site)
      site.config['domain'] = ENV['DOMAIN'] || 'badssl.com'
      site.config['serving-path'] = ENV['SERVING_PATH'] || '/var/www/badssl/_site'

      site.config['cert-path'] = site.config['serving-path'] + '/certs/sets/current/gen/chain'
      site.config['dhparam-path'] = site.config['serving-path'] + '/certs/sets/current/gen/dhparam'
    end

  end

end

# Plugin to add environment variables to the `site` object in Liquid templates

module Jekyll

  class EnvironmentVariablesGenerator < Generator

    def generate(site)
      site.config['domain'] = ENV['DOMAIN'] || 'badssl.com'
      site.config['http-domain'] = ENV['HTTP_DOMAIN'] || 'http.badssl.com'
      site.config['serving-path'] = ENV['SERVING_PATH'] || '/var/www/badssl/_site'

      site.config['cert-path'] = site.config['serving-path'] + '/certs/sets/current/gen/chain'
      site.config['dhparam-path'] = site.config['serving-path'] + '/certs/sets/current/gen/dhparam'
    end

  end

end

Add 'http-domain' back to the Jekyll config.
Add 'http-domain' back to the Jekyll config.

I think I took it out because I was unable to find any uses cases in the project. I may have been using my search tool wrong.
