remove letsencrypt including migration
This commit is contained in:
parent
775f9b9910
commit
91e46684f1
1
Gemfile
1
Gemfile
@ -23,7 +23,6 @@ gem 'whenever', require: false
|
|||||||
# gem "image_processing", "~> 1.2"
|
# gem "image_processing", "~> 1.2"
|
||||||
|
|
||||||
gem "pg"
|
gem "pg"
|
||||||
gem 'rails-letsencrypt'
|
|
||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
gem "passenger", "6.0.13" , require: "phusion_passenger/rack_handler"
|
gem "passenger", "6.0.13" , require: "phusion_passenger/rack_handler"
|
||||||
|
19
Gemfile.lock
19
Gemfile.lock
@ -1,9 +1,6 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
acme-client (2.0.11)
|
|
||||||
faraday (>= 1.0, < 3.0.0)
|
|
||||||
faraday-retry (~> 1.0)
|
|
||||||
actioncable (7.0.4)
|
actioncable (7.0.4)
|
||||||
actionpack (= 7.0.4)
|
actionpack (= 7.0.4)
|
||||||
activesupport (= 7.0.4)
|
activesupport (= 7.0.4)
|
||||||
@ -88,7 +85,6 @@ GEM
|
|||||||
chronic (0.10.2)
|
chronic (0.10.2)
|
||||||
coderay (1.1.3)
|
coderay (1.1.3)
|
||||||
concurrent-ruby (1.1.10)
|
concurrent-ruby (1.1.10)
|
||||||
connection_pool (2.3.0)
|
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
cssbundling-rails (1.1.1)
|
cssbundling-rails (1.1.1)
|
||||||
railties (>= 6.0.0)
|
railties (>= 6.0.0)
|
||||||
@ -99,11 +95,6 @@ GEM
|
|||||||
dnsimple (8.1.0)
|
dnsimple (8.1.0)
|
||||||
httparty
|
httparty
|
||||||
erubi (1.11.0)
|
erubi (1.11.0)
|
||||||
faraday (2.6.0)
|
|
||||||
faraday-net_http (>= 2.0, < 3.1)
|
|
||||||
ruby2_keywords (>= 0.0.4)
|
|
||||||
faraday-net_http (3.0.2)
|
|
||||||
faraday-retry (1.0.3)
|
|
||||||
ffi (1.15.5)
|
ffi (1.15.5)
|
||||||
formatador (1.1.0)
|
formatador (1.1.0)
|
||||||
globalid (1.0.0)
|
globalid (1.0.0)
|
||||||
@ -225,10 +216,6 @@ GEM
|
|||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
rails-html-sanitizer (1.4.3)
|
rails-html-sanitizer (1.4.3)
|
||||||
loofah (~> 2.3)
|
loofah (~> 2.3)
|
||||||
rails-letsencrypt (0.10.1)
|
|
||||||
acme-client (~> 2.0.0)
|
|
||||||
rails (>= 5.0)
|
|
||||||
redis
|
|
||||||
railties (7.0.4)
|
railties (7.0.4)
|
||||||
actionpack (= 7.0.4)
|
actionpack (= 7.0.4)
|
||||||
activesupport (= 7.0.4)
|
activesupport (= 7.0.4)
|
||||||
@ -240,10 +227,6 @@ GEM
|
|||||||
rb-fsevent (0.11.2)
|
rb-fsevent (0.11.2)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
redis (5.0.5)
|
|
||||||
redis-client (>= 0.9.0)
|
|
||||||
redis-client (0.11.1)
|
|
||||||
connection_pool
|
|
||||||
regexp_parser (2.6.0)
|
regexp_parser (2.6.0)
|
||||||
reline (0.3.1)
|
reline (0.3.1)
|
||||||
io-console (~> 0.5)
|
io-console (~> 0.5)
|
||||||
@ -269,7 +252,6 @@ GEM
|
|||||||
rspec-mocks (~> 3.10)
|
rspec-mocks (~> 3.10)
|
||||||
rspec-support (~> 3.10)
|
rspec-support (~> 3.10)
|
||||||
rspec-support (3.12.0)
|
rspec-support (3.12.0)
|
||||||
ruby2_keywords (0.0.5)
|
|
||||||
rubyzip (2.3.2)
|
rubyzip (2.3.2)
|
||||||
sassc (2.4.0)
|
sassc (2.4.0)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
@ -341,7 +323,6 @@ DEPENDENCIES
|
|||||||
puma
|
puma
|
||||||
rack-mini-profiler
|
rack-mini-profiler
|
||||||
rails (~> 7.0)
|
rails (~> 7.0)
|
||||||
rails-letsencrypt
|
|
||||||
rspec-rails (~> 5.0.0)
|
rspec-rails (~> 5.0.0)
|
||||||
sassc-rails
|
sassc-rails
|
||||||
selenium-webdriver
|
selenium-webdriver
|
||||||
|
@ -11,15 +11,15 @@ default: &default
|
|||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: gateway_test
|
database: hubfeenix_test
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
# Do not set this db to the same as development or production.
|
# Do not set this db to the same as development or production.
|
||||||
test:
|
test:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: gateway_dev
|
database: hubfeenix_dev
|
||||||
|
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: gateway_production
|
database: hubfeenix
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
LetsEncrypt.config do |config|
|
|
||||||
# Using Let's Encrypt staging server or not
|
|
||||||
# Default only `Rails.env.production? == true` will use Let's Encrypt production server.
|
|
||||||
config.use_staging = false
|
|
||||||
|
|
||||||
# Set the private key path
|
|
||||||
# Default is locate at config/letsencrypt.key
|
|
||||||
config.private_key_path = Rails.root.join('config', 'letsencrypt.key')
|
|
||||||
|
|
||||||
# Use environment variable to set private key
|
|
||||||
# If enable, the API Client will use `LETSENCRYPT_PRIVATE_KEY` as private key
|
|
||||||
# Default is false
|
|
||||||
config.use_env_key = false
|
|
||||||
|
|
||||||
end
|
|
@ -2,5 +2,4 @@ Rails.application.routes.draw do
|
|||||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||||
|
|
||||||
# root to: 'high_voltage/pages#show', id: 'index'
|
# root to: 'high_voltage/pages#show', id: 'index'
|
||||||
mount LetsEncrypt::Engine => '/.well-known'
|
|
||||||
end
|
end
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
# :nodoc:
|
|
||||||
class CreateLetsencryptCertificates < ActiveRecord::Migration[7.0]
|
|
||||||
def change
|
|
||||||
create_table :letsencrypt_certificates do |t|
|
|
||||||
t.string :domain
|
|
||||||
t.text :certificate, limit: 65535
|
|
||||||
t.text :intermediaries, limit: 65535
|
|
||||||
t.text :key, limit: 65535
|
|
||||||
t.datetime :expires_at
|
|
||||||
t.datetime :renew_after
|
|
||||||
t.string :verification_path
|
|
||||||
t.string :verification_string
|
|
||||||
|
|
||||||
t.index :domain
|
|
||||||
t.index :renew_after
|
|
||||||
t.timestamps
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
17
db/schema.rb
generated
17
db/schema.rb
generated
@ -10,23 +10,8 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.0].define(version: 2022_04_09_143030) do
|
ActiveRecord::Schema[7.0].define(version: 0) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
|
||||||
create_table "letsencrypt_certificates", force: :cascade do |t|
|
|
||||||
t.string "domain"
|
|
||||||
t.text "certificate"
|
|
||||||
t.text "intermediaries"
|
|
||||||
t.text "key"
|
|
||||||
t.datetime "expires_at"
|
|
||||||
t.datetime "renew_after"
|
|
||||||
t.string "verification_path"
|
|
||||||
t.string "verification_string"
|
|
||||||
t.datetime "created_at", null: false
|
|
||||||
t.datetime "updated_at", null: false
|
|
||||||
t.index ["domain"], name: "index_letsencrypt_certificates_on_domain"
|
|
||||||
t.index ["renew_after"], name: "index_letsencrypt_certificates_on_renew_after"
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user