Last active
January 29, 2016 04:44
-
-
Save celadevra/91977fe7a31be2290e4c to your computer and use it in GitHub Desktop.
My config and dockerfiles for automated blog update on digitalocean
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { worker_connections 1024; } | |
http { | |
include /etc/nginx/mime.types; | |
default_type text/html; | |
server { | |
listen 443 ssl; | |
server_name expoundite.net; | |
ssl_certificate /etc/nginx/fullchain.pem; | |
ssl_trusted_certificate /etc/nginx/chain.pem; | |
ssl_certificate_key /etc/nginx/privkey.pem; | |
location / { | |
root /data/www; | |
index index; | |
} | |
} | |
server { | |
listen 80; | |
return 301 https://expoundite.net$request_uri; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx | |
COPY config /etc/nginx/nginx.conf | |
COPY privkey.pem /etc/nginx/privkey.pem # these are certificates obtained from Let's Encrypt | |
COPY chain.pem /etc/nginx/chain.pem | |
COPY fullchain.pem /etc/nginx/fullchain.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment