Skip to content

Commit

Permalink
added HTTPS example to Hypnotoad recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 4, 2012
1 parent eece904 commit f755ae2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.65 2012-12-03
3.65 2012-12-04
- Improved documentation.
- Improved tests.

Expand Down
9 changes: 7 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -76,7 +76,7 @@ for a full list see L<Mojo::Server::Hypnotoad/"SETTINGS">.

use Mojolicious::Lite;

app->config(hypnotoad => {listen => ['http://*:3000']});
app->config(hypnotoad => {listen => ['http://*:80']});

get '/' => {text => 'Hello Wor...ALL GLORY TO THE HYPNOTOAD!'};

Expand All @@ -86,7 +86,12 @@ Or just add a C<hypnotoad> section to your L<Mojolicious::Plugin::Config> or
L<Mojolicious::Plugin::JSONConfig> configuration file.

# myapp.conf
{hypnotoad => {listen => ['http://*:80'], workers => 10}};
{
hypnotoad => {
listen => ['https://*:443?cert=/etc/server.crt&key=/etc/server.key'],
workers => 10
}
};

But one of its biggest advantages is the support for effortless zero downtime
software upgrades. That means you can upgrade L<Mojolicious>, Perl or even
Expand Down

0 comments on commit f755ae2

Please sign in to comment.