Skip to content

Commit

Permalink
Updates workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Oct 6, 2023
1 parent f753091 commit 8861f17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/proxy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
NODE_PATH: /home/runner/work/Blot/Blot/app
NODE_SERVER_IP: 127.0.0.1
REDIS_IP: 127.0.0.1
SSL_CERTIFICATE: /home/runner/work/Blot/Blot/config/openresty/data/selfsigned.crt
SSL_CERTIFICATE_KEY: /home/runner/work/Blot/Blot/config/openresty/data/selfsigned.key
run: |
node config/openresty/build-config.js
cat config/openresty/data/openresty.conf
Expand Down
6 changes: 4 additions & 2 deletions config/openresty/build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ const locals = {
// if you change the cache directory, you must also update the
// script mount-instance-store.sh
cache_directory: "/var/www/cache",
ssl_certificate: "/etc/ssl/private/letsencrypt-domain.pem",
ssl_certificate_key: "/etc/ssl/private/letsencrypt-domain.key"
ssl_certificate:
process.env.SSL_CERTIFICATE || "/etc/ssl/private/letsencrypt-domain.pem",
ssl_certificate_key:
process.env.SSL_CERTIFICATE_KEY || "/etc/ssl/private/letsencrypt-domain.key"
};

if (!NODE_SERVER_IP) throw new Error("NODE_SERVER_IP not set");
Expand Down

0 comments on commit 8861f17

Please sign in to comment.