diff --git a/.docker/symfony.conf b/.docker/symfony.conf index 952407e7..1527286c 100644 --- a/.docker/symfony.conf +++ b/.docker/symfony.conf @@ -28,7 +28,7 @@ PassEnv APP_ENV APP_DEBUG APP_SECRET PassEnv TRUSTED_PROXIES TRUSTED_HOSTS LOCK_DSN PassEnv DATABASE_URL ENFORCE_CHANGE_COMMENTS_FOR - PassEnv DEFAULT_LANG DEFAULT_TIMEZONE BASE_CURRENCY INSTANCE_NAME ALLOW_ATTACHMENT_DOWNLOADS USE_GRAVATAR MAX_ATTACHMENT_FILE_SIZE DEFAULT_URI + PassEnv DEFAULT_LANG DEFAULT_TIMEZONE BASE_CURRENCY INSTANCE_NAME ALLOW_ATTACHMENT_DOWNLOADS USE_GRAVATAR MAX_ATTACHMENT_FILE_SIZE DEFAULT_URI CHECK_FOR_UPDATES PassEnv MAILER_DSN ALLOW_EMAIL_PW_RESET EMAIL_SENDER_EMAIL EMAIL_SENDER_NAME PassEnv HISTORY_SAVE_CHANGED_FIELDS HISTORY_SAVE_CHANGED_DATA HISTORY_SAVE_REMOVED_DATA HISTORY_SAVE_NEW_DATA PassEnv ERROR_PAGE_ADMIN_EMAIL ERROR_PAGE_SHOW_HELP diff --git a/.env b/.env index 22ba44cf..5b1a73e5 100644 --- a/.env +++ b/.env @@ -44,6 +44,9 @@ DEFAULT_URI="https://partdb.changeme.invalid/" # Leave this empty, to make all change reasons optional ENFORCE_CHANGE_COMMENTS_FOR="" +# Disable that if you do not want that Part-DB connects to GitHub to check for available updates, or if your server can not connect to the internet +CHECK_FOR_UPDATES=1 + ################################################################################### # Email settings ################################################################################### diff --git a/config/parameters.yaml b/config/parameters.yaml index 4baf2fa7..84a07ab9 100644 --- a/config/parameters.yaml +++ b/config/parameters.yaml @@ -23,7 +23,7 @@ parameters: partdb.users.use_gravatar: '%env(bool:USE_GRAVATAR)%' # Set to false, if no Gravatar images should be used for user profiles. partdb.users.email_pw_reset: '%env(bool:ALLOW_EMAIL_PW_RESET)%' # Config if users are able, to reset their password by email. By default this enabled, when a mail server is configured. - partdb.check_for_updates: true # Set to false, if Part-DB should not contact the GitHub API to check for updates + partdb.check_for_updates: '%env(bool:CHECK_FOR_UPDATES)' # Set to false, if Part-DB should not contact the GitHub API to check for updates ###################################################################################################################### # Mail settings diff --git a/docs/configuration.md b/docs/configuration.md index c0f00933..7dae3923 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -36,6 +36,7 @@ The following configuration options can only be changed by the server administra * `datastructure_edit`: Edit operation of a existing datastructure (e.g. category, manufacturer, ...) * `datastructure_delete`: Delete operation of a existing datastructure (e.g. category, manufacturer, ...) * `datastructure_create`: Creation of a new datastructure (e.g. category, manufacturer, ...) +* `CHECK_FOR_UPDATES` (default `1`): Set this to 0, if you do not want Part-DB to connect to GitHub to check for new versions, or if your server can not connect to the internet. ### E-Mail settings * `MAILER_DSN`: You can configure the mail provider which should be used for email delivery (see https://symfony.com/doc/current/components/mailer.html for full documentation). If you just want to use an SMTP mail account, you can use the following syntax `MAILER_DSN=smtp://user:password@smtp.mailserver.invalid:587`