mirror of
https://github.com/xwiki-labs/cryptpad-docker.git
synced 2024-11-26 09:13:38 +00:00
Make open graph metadata generation configurable
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
parent
6eb9525fde
commit
7022ff032a
2 changed files with 6 additions and 0 deletions
|
@ -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_DHPARAM` | Path to Diffie-Hellman parameters file | No | `/etc/nginx/dhparam.pem` |
|
||||
| `CPAD_HTTP2_DISABLE` | Disable HTTP2 | No | `false` |
|
||||
| CPAD_OPENGRAPH | Enable generation of Open Graph metadata | No | true |
|
||||
|
||||
#### Usage
|
||||
|
||||
|
|
|
@ -163,4 +163,9 @@ fi
|
|||
cd $CPAD_HOME
|
||||
npm run build
|
||||
|
||||
# Should Open Graph files be generated
|
||||
if [ "${CPAD_OPENGRAPH:-true}" != "false" ]; then
|
||||
npm run make-opengraph
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
Loading…
Reference in a new issue