Skip to content

Instantly share code, notes, and snippets.

@celadevra
Last active January 29, 2016 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save celadevra/91977fe7a31be2290e4c to your computer and use it in GitHub Desktop.
Save celadevra/91977fe7a31be2290e4c to your computer and use it in GitHub Desktop.
My config and dockerfiles for automated blog update on digitalocean
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;
}
}
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