Skip to content

Commit

Permalink
nginx: fix cert location
Browse files Browse the repository at this point in the history
- now in ${NGINX_SSL_CERTIFICATE}/ (build.local) to offer
a central location
  • Loading branch information
wwwutz committed Mar 25, 2024
1 parent 05c45d4 commit 74eebd7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nginx.conf.build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -e
set -x
set -u

. build.profile

Expand Down Expand Up @@ -30,16 +31,16 @@ http {
server {
server_name ${PAPERLESS_BIND_ADDR};
access_log ${PAPERLESS_LOGGING_DIR}/nginx-access.log;
access_log ${LOGDIR}/nginx-access.log;
listen ${PAPERLESS_BIND_ADDR}:${PAPERLESS_PORT};
_EOP_

if [ -v PAPERLESS_HTTPS ]; then
tee -a ${CONF} <<_EOP_
listen ${PAPERLESS_BIND_ADDR}:${PAPERLESS_HTTPS} ssl;
ssl_certificate fullchain.pem;
ssl_certificate_key privkey.pem;
ssl_certificate ${NGINX_SSL_CERTIFICATE}; # from build.local
ssl_certificate_key ${NGINX_SSL_CERTIFICATE_KEY}; # from build.local
ssl_dhparam dhparam.pem; # src/nginx.build.sh
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
Expand Down

0 comments on commit 74eebd7

Please sign in to comment.