Merge pull request #5 from BrunoZell/master

Added usage example
This commit is contained in:
Elliot Saba 2018-09-21 11:36:39 +02:00 committed by GitHub
commit 7a0360bd42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 22 additions and 0 deletions

2
example/Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM staticfloat/nginx-certbot
COPY *.conf /etc/nginx/conf.d/

View File

@ -0,0 +1,11 @@
version: '3'
services:
proxy:
build: .
restart: always
environment:
CERTBOT_EMAIL: "your.email@example.com"
ports:
- "80:80"
- "443:443"

9
example/nginx.conf Normal file
View File

@ -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;
}

0
scripts/run_certbot.sh → src/scripts/run_certbot.sh Executable file → Normal file
View File