Use Let's Encrypt keypair filenames for easier bind mounting

This commit is contained in:
Lauri Võsandi 2021-06-04 08:37:45 +00:00
parent b774eaacc9
commit 3b0a39a877
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ RUN nunjucks-precompile --include snippets --include views templates >> js/bundl
RUN bash -c 'cat /usr/lib/node_modules/{jquery/dist/jquery.min.js,tether/dist/js/tether.min.js,bootstrap/dist/js/bootstrap.min.js,node-forge/dist/forge.all.min.js,qrcode-svg/dist/qrcode.min.js,timeago/jquery.timeago.js,nunjucks/browser/nunjucks-slim.min.js,xterm/lib/xterm.js} >> js/bundle.js'
RUN bash -c 'cat /usr/lib/node_modules/{tether/dist/css/tether.min.css,bootstrap/dist/css/bootstrap.min.css,font-awesome/css/font-awesome.min.css,xterm/css/xterm.css} >> css/bundle.css'
RUN mkdir /frontend-secrets
RUN ln -s ../server-secrets/self_cert.pem /frontend-secrets/cert.pem
RUN ln -s ../server-secrets/self_key.pem /frontend-secrets/key.pem
RUN ln -s ../server-secrets/self_cert.pem /frontend-secrets/fullchain.pem
RUN ln -s ../server-secrets/self_key.pem /frontend-secrets/privkey.pem
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT /entrypoint.sh

View File

@ -94,8 +94,8 @@ http {
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
# Bind mount this directory to use Let's Encrypt keypair for frontend
ssl_certificate /frontend-secrets/cert.pem;
ssl_certificate_key /frontend-secrets/key.pem;
ssl_certificate /frontend-secrets/fullchain.pem;
ssl_certificate_key /frontend-secrets/privkey.pem;
#proxy pass event
location /api/event/ {