I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
# autoload concerns | |
module YourApp | |
class Application < Rails::Application | |
config.autoload_paths += %W( | |
#{config.root}/app/controllers/concerns | |
#{config.root}/app/models/concerns | |
) | |
end | |
end |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
# | |
# File: /etc/logrotate.d/rails | |
# Test: logrotate -f /etc/logrotate.d/rails | |
# | |
/var/www/*/log/*.log { | |
daily | |
dateext | |
notifempty | |
missingok | |
rotate 30 |
There are two main modes to run the Let's Encrypt client (called Certbot
):
Webroot is better because it doesn't need to replace Nginx (to bind to port 80).
In the following, we're setting up mydomain.com
.
HTML is served from /var/www/mydomain
, and challenges are served from /var/www/letsencrypt
.
require 'active_support' | |
module CRUDActions | |
extend ActiveSupport::Concern | |
included do | |
before_action :set_resource, only: [:show, :update, :destroy] | |
after_action :set_response_headers, only: [:index] | |
end | |
# Returns count of records matching the scope |