Commit c81bacdd860cbfeb4079b7ee70620891cf563023
1 parent
41d846f9
add pages controller to enable letsencrypt for the project
Showing
7 changed files
with
31 additions
and
0 deletions
app/assets/javascripts/pages.coffee
0 → 100644
app/assets/stylesheets/pages.scss
0 → 100644
app/controllers/pages_controller.rb
0 → 100644
app/helpers/pages_helper.rb
0 → 100644
app/views/pages/letsencrypt.html.erb
0 → 100644
1 | Rails.application.routes.draw do | 1 | Rails.application.routes.draw do |
2 | + get 'pages/letsencrypt' | ||
3 | + | ||
2 | get 'welcome/index' | 4 | get 'welcome/index' |
3 | 5 | ||
4 | # The priority is based upon order of creation: first created -> highest priority. | 6 | # The priority is based upon order of creation: first created -> highest priority. |
@@ -7,6 +9,10 @@ Rails.application.routes.draw do | @@ -7,6 +9,10 @@ Rails.application.routes.draw do | ||
7 | # You can have the root of your site routed with "root" | 9 | # You can have the root of your site routed with "root" |
8 | root 'welcome#index' | 10 | root 'welcome#index' |
9 | 11 | ||
12 | + # Static pages controller | ||
13 | + # controller for letsencrypt | ||
14 | + get '/.well-known/acme-challenge/:id' => 'pages#letsencrypt' | ||
15 | + | ||
10 | # Example of regular route: | 16 | # Example of regular route: |
11 | # get 'products/:id' => 'catalog#view' | 17 | # get 'products/:id' => 'catalog#view' |
12 | 18 |
Please
register
or
login
to post a comment