Skip to content

Commit

Permalink
fixes to examples in README
Browse files Browse the repository at this point in the history
closes #23
  • Loading branch information
geemus committed Nov 27, 2024
1 parent 0558b1d commit b924d90
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit b924d90

Please sign in to comment.