Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Docker Nginx Auto Ssl
Commits
0079d55a
Unverified
Commit
0079d55a
authored
Nov 28, 2017
by
Jakub Skałecki
Committed by
GitHub
Nov 28, 2017
Browse files
Better examples in README.md. Closes #1
parent
de5fee4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0079d55a
...
...
@@ -19,8 +19,8 @@ docker run -d \
Created certs are kept in
`/etc/resty-auto-ssl`
directory. It's volume by default, but you may want to mount it to some directory on the host.
All options:
**ALLOWED_DOMAINS**
-
[
lua pattern
](
http://lua-users.org/wiki/PatternsTutorial
)
of allowed domains.
W
e're using
`string.match`
**DIFFIE_HELLMAN**
- force regeneration of
`dhparam.pem`
. If not specified, default one is used.
*
**ALLOWED_DOMAINS**
-
[
lua pattern
](
http://lua-users.org/wiki/PatternsTutorial
)
of allowed domains.
Internally, w
e're using
`string.match`
. Examples:
`example.com`
,
`(www|api).example.com`
,
`([a-z]+.)?example.com`
*
**DIFFIE_HELLMAN**
- force regeneration of
`dhparam.pem`
. If not specified, default one is used.
Advanced usage:
```
Bash
...
...
@@ -29,7 +29,7 @@ docker run -d \
--restart on-failure \
-p 80:80 \
-p 443:443 \
-e ALLOWED_DOMAINS=
.*
example.com \
-e ALLOWED_DOMAINS=example.com \
-e DIFFIE_HELLMAN=true \
-v ssl-data:/etc/resty-auto-ssl \
valian/docker-nginx-auto-ssl
...
...
@@ -62,7 +62,7 @@ http {
include
ssl.conf
;
include
resty-server-https.conf
;
# you should add
provide
your own locations here
# you should add your own locations here
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment