Module: ApartmentAcmeClient
- Defined in:
- lib/apartment_acme_client/encryption.rb,
lib/apartment_acme_client.rb,
lib/apartment_acme_client/engine.rb,
lib/apartment_acme_client/railtie.rb,
lib/apartment_acme_client/version.rb,
lib/apartment_acme_client/dns_api/fake.rb,
lib/apartment_acme_client/domain_checker.rb,
app/models/apartment_acme_client/verifier.rb,
lib/apartment_acme_client/dns_api/route53.rb,
lib/apartment_acme_client/renewal_service.rb,
lib/apartment_acme_client/acme_client/proxy.rb,
lib/apartment_acme_client/dns_api/check_dns.rb,
app/jobs/apartment_acme_client/application_job.rb,
lib/apartment_acme_client/certificate_storage/s3.rb,
lib/apartment_acme_client/file_manipulation/real.rb,
lib/apartment_acme_client/acme_client/real_client.rb,
lib/apartment_acme_client/file_manipulation/proxy.rb,
lib/apartment_acme_client/nginx_configuration/real.rb,
app/models/apartment_acme_client/application_record.rb,
lib/apartment_acme_client/certificate_storage/proxy.rb,
lib/apartment_acme_client/nginx_configuration/proxy.rb,
app/helpers/apartment_acme_client/application_helper.rb,
app/mailers/apartment_acme_client/application_mailer.rb,
app/controllers/apartment_acme_client/application_controller.rb
Overview
Initially, the system is only accessible via subdomain.example.com But, as we add more Conventions, we want to be able to access those also, thus we will need:
-
*.subdomain.example.com
Also, each convention may add an “alias” for their convention, like:
-
french-convention.unicycle.fr
Steps to make this work: 1) When a new Convention is created, or a new alias is added, configure nginx
so that it responds to that domain request
`rake update_nginx_config` (writes a new nginx.conf and restarts nginx)
2) Register the new domain with letsencrypt
`rake renew_and_update_certificate`
Manage the encryption of the website (https).
Defined Under Namespace
Modules: AcmeClient, ApplicationHelper, CertificateStorage, DnsApi, FileManipulation, NginxConfiguration Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, DomainChecker, Encryption, Engine, Railtie, RenewalService, VerificationsController, Verifier
Constant Summary collapse
- VERSION =
'0.0.9'
Class Method Summary collapse
Class Method Details
.domains_to_check ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/apartment_acme_client.rb', line 25 def self.domains_to_check if @@domains_to_check.respond_to?(:call) @@domains_to_check.call else @@domains_to_check end end |