-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #23
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,21 +37,27 @@ basic: | |
```ruby | ||
# config/puma.rb | ||
|
||
config.bind 'tcp://0.0.0.0:80' | ||
|
||
require 'puma/acme' | ||
|
||
bind 'tcp://0.0.0.0:80' | ||
|
||
plugin :acme | ||
|
||
acme_server_name 'puma-acme.example.org' | ||
acme_tos_agreed true | ||
|
||
config.bind 'acme://0.0.0.0:443' | ||
bind 'acme://0.0.0.0:443' | ||
``` | ||
|
||
advanced: | ||
|
||
```ruby | ||
# config/puma.rb | ||
|
||
require 'puma/acme' | ||
# require 'rails' # if using Rails.cache for acme_cache | ||
|
||
# Account contact URL(s). For email, use the form 'mailto:[email protected]'. | ||
# Recommended for account recovery and revocation. | ||
acme_contact 'mailto:[email protected]' | ||
|
@@ -90,7 +96,7 @@ acme_mode :background | |
|
||
# ActiveSupport::Cache::Store compatible cache to store account, order, and | ||
# certificate data. Defaults to a local filesystem based cache. | ||
acme_cache Rails.cache | ||
# acme_cache Rails.cache | ||
|
||
# Path to the cache directory for the default cache, defaults to 'tmp/acme'. | ||
acme_cache_dir 'tmp/acme' | ||
|