Make open graph metadata generation configurable

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
Adrian Nöthlich 2022-11-13 14:47:43 +01:00
parent 6eb9525fde
commit 7022ff032a
No known key found for this signature in database
GPG key ID: 01348F55AA57C1E7
2 changed files with 6 additions and 0 deletions

View file

@ -77,6 +77,7 @@ To disable HTTP2 set the environment variable `CPAD_HTTP2_DISABLE` to `true`.
| `CPAD_TLS_KEY` | Path to TLS private key file | No | None | | `CPAD_TLS_KEY` | Path to TLS private key file | No | None |
| `CPAD_TLS_DHPARAM` | Path to Diffie-Hellman parameters file | No | `/etc/nginx/dhparam.pem` | | `CPAD_TLS_DHPARAM` | Path to Diffie-Hellman parameters file | No | `/etc/nginx/dhparam.pem` |
| `CPAD_HTTP2_DISABLE` | Disable HTTP2 | No | `false` | | `CPAD_HTTP2_DISABLE` | Disable HTTP2 | No | `false` |
| CPAD_OPENGRAPH | Enable generation of Open Graph metadata | No | true |
#### Usage #### Usage

View file

@ -163,4 +163,9 @@ fi
cd $CPAD_HOME cd $CPAD_HOME
npm run build npm run build
# Should Open Graph files be generated
if [ "${CPAD_OPENGRAPH:-true}" != "false" ]; then
npm run make-opengraph
fi
exec "$@" exec "$@"