Created
February 12, 2017 09:00
-
-
Save ggtools/8f089143245752e54f9d68789ee0aacd to your computer and use it in GitHub Desktop.
Nginx SSL
This file contains hidden or 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
/run/secrets/site.crt FROM nginx | |
COPY site.conf /etc/nginx/conf.d/ |
This file contains hidden or 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
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