Skip to content

Commit

Permalink
document describing how to use amber SSL (#149)
Browse files Browse the repository at this point in the history
contains instructions on how to enable SSL for amber
  • Loading branch information
mixflame authored and drujensen committed Aug 8, 2019
1 parent b0691ce commit 5e7101c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions guides/ssl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SSL

For development use self-signed keys and edit ```config/environments/development.yml```

```
ssl_key_file: example.key
ssl_cert_file: example.crt
```

For production, please use CertBot (https://certbot.eff.org) and edit ```config/environments/production.yml```

It is possible to set this in your Amber configure block as well, in ```config/application.cr```

```
Amber::Server.configure do |setting|
# Server options
setting.name = "Example web application."
setting.port = 3000 # Port you wish your app to run
setting.host = "0.0.0.0"
setting.ssl_key_file = "example.key"
setting.ssl_cert_file = "example.crt"
end
```

0 comments on commit 5e7101c

Please sign in to comment.