Add _FILE support

This commit is contained in:
Dave Conroy 2023-04-26 10:23:07 -07:00
parent 560ab340e3
commit 9092dd5a87
2 changed files with 27 additions and 20 deletions

View file

@ -146,12 +146,12 @@ Be sure to view the following repositories to understand all the customizable op
#### Administration #### Administration
| Parameter | Description | Default | | Parameter | Description | Default | `_FILE` |
| ---------------------- | --------------------------------------------- | ----------------- | | ---------------------- | --------------------------------------------- | ----------------- | --- |
| `ENABLE_ADMIN_CONSOLE` | Enable Administration Console | `TRUE` | | `ENABLE_ADMIN_CONSOLE` | Enable Administration Console | `TRUE` | |
| `ADMIN_USER` | User for accessing Administration Console | `admin` | | `ADMIN_USER` | User for accessing Administration Console | `admin` | x |
| `ADMIN_PASS` | Password for accessing Administration Console | `collaboraonline` | | `ADMIN_PASS` | Password for accessing Administration Console | `collaboraonline` | x |
| `ADMIN_JWT_EXPIRY` | Admin JWT Expiry in seconds | `1800` | | `ADMIN_JWT_EXPIRY` | Admin JWT Expiry in seconds | `1800` | |
#### Logging #### Logging
@ -269,21 +269,21 @@ The image comes with English (US, GB, Canada variants) baked into the image, how
| `FILES_QUARANTINE_EXPIRY` | Files expiry in minutes | `30` | | `FILES_QUARANTINE_EXPIRY` | Files expiry in minutes | `30` |
#### DeepL Translation #### DeepL Translation
| Parameter | Description | Default | | Parameter | Description | Default | `_FILE` |
| ---------------- | -------------------------------- | ------- | | ---------------- | -------------------------------- | ------- | --- |
| `ENABLE_DEEPL` | Enable DeepL Translation Support | `FALSE` | | `ENABLE_DEEPL` | Enable DeepL Translation Support | `FALSE` ||
| `DEEPL_API_URL` | DeepL API URL | `` | | `DEEPL_API_URL` | DeepL API URL | `` | x |
| `DEEPL_AUTH_KEY` | DeepL Auth Key | `` | | `DEEPL_AUTH_KEY` | DeepL Auth Key | `` | x |
#### Language Tool #### Language Tool
| Parameter | Description | Default | | Parameter | Description | Default | `_FILE` |
| ----------------------------- | ------------------------------------------------------------------------ | ------- | | ----------------------------- | ------------------------------------------------------------------------ | ------- | --- |
| `ENABLE_LANGUAGE_TOOL` | Enable Language Tool Grammar checking integration | `FALSE` | | `ENABLE_LANGUAGE_TOOL` | Enable Language Tool Grammar checking integration | `FALSE` | |
| `LANGUAGE_TOOL_BASE_URL` | Base URL for Language Tool | | | `LANGUAGE_TOOL_BASE_URL` | Base URL for Language Tool | | x |
| `LANGUAGE_TOOL_USER_NAME` | Language Tool User Name | | | `LANGUAGE_TOOL_USER_NAME` | Language Tool User Name | | x |
| `LANGUAGE_TOOL_API_KEY` | Language Tool provided API Key | | | `LANGUAGE_TOOL_API_KEY` | Language Tool provided API Key | | x|
| `LANGUAGE_TOOL_REST_PROTOCOL` | REST protocol. blank for Language Tool `duden` for Duden Korrekturserver | | | `LANGUAGE_TOOL_REST_PROTOCOL` | REST protocol. blank for Language Tool `duden` for Duden Korrekturserver | | |
| `LANGUAGE_TOOL_SSL_VERIFY` | SSL Verify | `TRUE` | | `LANGUAGE_TOOL_SSL_VERIFY` | SSL Verify | `TRUE` | |
#### Zotero #### Zotero
| Parameter | Description | Default | | Parameter | Description | Default |

View file

@ -5,6 +5,14 @@ prepare_service single
prepare_service 03-monitoring prepare_service 03-monitoring
PROCESS_NAME="collabora-online" PROCESS_NAME="collabora-online"
transform_file_var \
ADMIN_USER \
ADMIN_PASS \
DEEPL_API_URL \
DEEPL_AUTH_KEY \
LANGUAGE_TOOL_USER_NAME \
LANGUAGE_TOOL_REST_PROTOCOL
sanity_var "ALLOWED_HOSTS" "Allowed Hostnames" sanity_var "ALLOWED_HOSTS" "Allowed Hostnames"
print_debug "Creating directories and setting up logging" print_debug "Creating directories and setting up logging"
@ -12,7 +20,6 @@ mkdir -p "${LOG_PATH}"
touch "${LOG_PATH}"/"${LOG_FILE}" touch "${LOG_PATH}"/"${LOG_FILE}"
chown -R cool "${LOG_PATH}" chown -R cool "${LOG_PATH}"
print_debug "Setting up DNS Resolution" print_debug "Setting up DNS Resolution"
rm /opt/cool/systemplate/etc/resolv.conf rm /opt/cool/systemplate/etc/resolv.conf
cp /etc/hosts /opt/cool/systemplate/etc/ cp /etc/hosts /opt/cool/systemplate/etc/