added baisc usage example
This commit is contained in:
parent
f9ac240d32
commit
80b1ba3d4d
|
@ -0,0 +1,2 @@
|
|||
FROM staticfloat/nginx-certbot
|
||||
COPY *.conf /etc/nginx/conf.d/
|
|
@ -0,0 +1,11 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
proxy:
|
||||
build: .
|
||||
restart: always
|
||||
environment:
|
||||
CERTBOT_EMAIL: "your.email@example.com"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
|
@ -0,0 +1,9 @@
|
|||
server {
|
||||
listen 443 ssl;
|
||||
server_name yourhostname.com;
|
||||
ssl_certificate /etc/letsencrypt/live/yourhostname.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/yourhostname.com/privkey.pem;
|
||||
|
||||
return 200 'Let\'s Encrypt certificate successfully installed!';
|
||||
add_header Content-Type text/plain;
|
||||
}
|
Loading…
Reference in New Issue