Skip to content

Instantly share code, notes, and snippets.

@ggtools
Created February 12, 2017 09:00
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 ggtools/8f089143245752e54f9d68789ee0aacd to your computer and use it in GitHub Desktop.
Save ggtools/8f089143245752e54f9d68789ee0aacd to your computer and use it in GitHub Desktop.
Nginx SSL
/run/secrets/site.crt FROM nginx
COPY site.conf /etc/nginx/conf.d/
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /run/secrets/site.crt;
ssl_certificate_key /run/secrets/site.key;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment