OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#44825] Add .env to Environment Configuration Docs (#11579)
adam-opa025a6209831
diff --git a/docs/installation-and-operations/configuration/README.md b/docs/installation-and-operations/configuration/README.mdindex 67d33293960..9bd8150cb31 100644--- a/docs/installation-and-operations/configuration/README.md+++ b/docs/installation-and-operations/configuration/README.md@@ -8,19 +8,159 @@ sidebar_navigation:-OpenProject can be configured either via the `config/configuration.yml` file, [environment variables](environment/) or a mix of both.-While the latter is probably a bad idea, the environment variable option is often helpful for automatically deploying production systems.-Using the configuration file is probably the simplest way of configuration.+OpenProject can be configured either via environment variables. These are often helpful for automatically deploying production systems.-You can find a list of options below and an example file in [config/configuration.yml.example](https://github.com/opf/openproject/blob/dev/config/configuration.yml.example)+> **NOTE:** This documentation is for OpenProject on-premises Installations only, if you would like to setup similar in your OpenProject cloud instance, please contact us at [email protected]+> **NOTE:** Using the configuration file `config/configuration.yml` is depracted and is **NOT** recommended anymore-## Environment variables-Configuring OpenProject through environment variables is detailed [in this separate guide](environment/).+# Packaged installation-## List of options+The file `/opt/openproject/.env.example` contains some information to learn more. The file `/opt/openproject/conf.d/env` is used for parsing the variables and your custom values to your configuration.++To configure the environment variables such as the number of web server threads OPENPROJECT_HTTPS, copy the `.env.example` to `/etc/openproject/conf.d/env` and add the environment variables you want to configure. The variables will be automatically loaded to the application’s environment.++After changing the file `/etc/openproject/conf.d/env` the command `sudo openproject configure` must be issued++If you would like to change only one variable you are able to configure the environment variable by using the following command:++```bash+sudo openproject config:set OPENPROJECT_HTTPS="false"+```++This will write the value of the variable to the file `/etc/openproject/conf.d/other`.++After the file `/etc/openproject/conf.d/other` is changed the command `sudo openproject configure` must be issued++Configuring OpenProject through environment variables is described in detail [in the environment variables guide](environment/).++# Docker++## one container per process installation++Add your custom configuration to `docker-compose.override.yml`.++In the compose folder you will also find the file `docker-compose.yml` which shall **NOT** be edited.++After changing the file `docker-compose.override.yml` the command `docker-compose down && docker-compose up -d` must be issued++To add an environment variable manually to the docker-compose file, add it to the `environment:` section of the `op-x-app` definition like in the following example:++```yaml+version: "3.7"++networks:+ frontend:+ backend:++volumes:+ pgdata:+ opdata:++x-op-restart-policy: &restart_policy+ restart: unless-stopped+x-op-image: &image+ image: openproject/community:${TAG:-12}+x-op-app: &app+ <<: [*image, *restart_policy]+ environment:+ OPENPROJECT_HTTPS: true+ # ... other configuration+ RAILS_CACHE_STORE: "memcache"+ OPENPROJECT_CACHE__MEMCACHE__SERVER: "cache:11211"+ OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"+ DATABASE_URL: "${DATABASE_URL:-postgres://postgres:p4ssw0rd@db/openproject?pool=20&encoding=unicode&reconnect=true}"+ RAILS_MIN_THREADS: 4+ RAILS_MAX_THREADS: 16+ # set to true to enable the email receiving feature. See ./docker/cron for more options+ IMAP_ENABLED: "${IMAP_ENABLED:-false}"+ volumes:+ - "${OPDATA:-opdata}:/var/openproject/assets"++# configuration cut off at this point.+# Please use the file at https://github.com/opf/openproject-deploy/blob/stable/12/compose/docker-compose.yml+```++++Alternatively, you can also use an env file for docker-compose like so:++First, add a `.env` file with some variable:++```bash+OPENPROJECT_HTTPS="true"+```++And then you'll need to pass the environment variable to the respective containers you want to set it on. For most OpenProject environment variables, this will be for `x-op-app`:++```yaml+version: "3.7"++networks:+ frontend:+ backend:++volumes:+ pgdata:+ opdata:++x-op-restart-policy: &restart_policy+ restart: unless-stopped+x-op-image: &image+ image: openproject/community:${TAG:-12}+x-op-app: &app+ <<: [*image, *restart_policy]+ environment:+ OPENPROJECT_HTTPS: ${OPENPROJECT_HTTPS}+ # ... more environment variables++# configuration cut off at this point.+# Please use the file at https://github.com/opf/openproject-deploy/blob/stable/12/compose/docker-compose.yml+```++++Let's say you have a `.env.prod` file with some production-specific configuration. Then, start the services with that special env file specified.++```bash+docker-compose --env-file .env.prod up+```++### Disabling services in the docker-compose file++If you have a `docker-compose.override.yml` file created, it is also easy to disable certain services, such as the database container if you have an external one running anyway.++To do that, add this section to the file:++```yaml+services:+ db:+ deploy:+ replicas: 0+```++Configuring OpenProject through environment variables is described in detail [in the environment variables guide](environment/).++++## Docker all-in-one container installation++Environment variables can be either passed directly on the command-line to the+Docker Engine, or via an environment file:++```bash+docker run -d -e KEY1=VALUE1 -e KEY2=VALUE2 ...+# or+docker run -d --env-file path/to/file ...+```++Configuring OpenProject through environment variables is described in detail [in the environment variables guide](environment/).++++## Examples for common use cases* `attachments_storage_path`* `autologin_cookie_name` (default: 'autologin'),@@ -55,18 +195,28 @@ Configuring OpenProject through environment variables is detailed [in this separUse `session_store` to define where session information is stored. In order to store sessions in the database and use the following options, set that configuration to `:active_record_store`.-**Delete old sessions for the same user when logging in** (Disabled by default)+**Delete old sessions for the same user when logging in**-To enable, set the configuration option `drop_old_sessions_on_login` to true.+To enable, set the configuration option:-**Delete old sessions for the same user when logging out** (Enabled by default)+*default: false*-To disable, set the configuration option `drop_old_sessions_on_logout` to false.+```yaml+OPENPROJECT_SESSION__STORE="{ :active_record_store: { drop_old_sessions_on_login: true } }"+```+**Delete old sessions for the same user when logging out**-### disable password login+To disable, set the configuration option:-*default: false*+*default: true*++```yaml+OPENPROJECT_SESSION__STORE="{ :active_record_store: { drop_old_sessions_on_logout: false } }"+```+++### disable local password loginIf you enable this option you have to configure at least one omniauth authenticationprovider to take care of authentication instead of the password login.@@ -74,42 +224,49 @@ provider to take care of authentication instead of the password login.All username/password forms will be removed and only a list of omniauth providerspresented to the users.+*default: false*++```yaml+OPENPROJECT_DISABLE__PASSWORD__LOGIN="true"+```+### auth source sso+Can be used to automatically login a user defined through a custom header sent by a load balancer or reverse proxy in front of OpenProject, for instance in a Kerberos Single Sign-On (SSO) setup via apache.+The header with the given name has to be passed to OpenProject containing the logged in user and the defined global secret as in `$login:$secret`.+*default: nil*-Example:+```yaml+OPENPROJECT_AUTH__SOURCE__SSO="{ header: X-Remote-User, secret: s3cr3t }"+```- auth_source_sso:- header: X-Remote-User-- # Optional secret to be passed by the header in form- # of a colon-separted userinfo string- # e.g., X-Remote-User "username:s3cret"- secret: s3cr3t- # Uncomment to make the header optional.- # optional: true+This example in the old `configuration.yml` looked like this:-Can be used to automatically login a user defined through a custom header-sent by a load balancer or reverse proxy in front of OpenProject,-for instance in a Kerberos Single Sign-On (SSO) setup via apache.-The header with the given name has to be passed to OpenProject containing the logged in-user and the defined global secret as in `$login:$secret`.+```yaml+auth_source_sso:+ header: X-Remote-User+ # Optional secret to be passed by the header in form+ # of a colon-separted userinfo string+ # e.g., X-Remote-User "username:s3cret"+ secret: s3cr3t+ # Uncomment to make the header optional.+ # optional: true+```### omniauth direct login provider-*default: nil*--Example:+Per default the user may choose the usual password login as well as <u>several</u> omniauth providers on the login page and in the login drop down menu. With this configuration option you can set a specific omniauth provider to be used for direct login. Meaning that the login provider selection is skipped and the configured provider is used directly (non-interactive) instead.- omniauth_direct_login_provider: google+If this option is active, a login will lead directly to the configured omniauth provider and so will a click on 'Sign in' (the drop down menu will not open).-Per default the user may choose the usual password login as well as several omniauth providers on the login page and in the login drop down menu. With his configuration option you can set a specific omniauth provider to be used for direct login. Meaning that the login provider selection is skipped and the configured provider is used directly instead.+> **NOTE:** This does not stop a user from manually navigating to any other omniauth provider if additional ones are configured.-If this option is active /login will lead directly to the configured omniauth provider and so will a click on 'Sign in' (as opposed to opening the drop down menu).+*default: nil*-Note that this does not stop a user from manually navigating to any other-omniauth provider if additional ones are configured.+```yaml+OPENPROJECT_OMNIAUTH__DIRECT__LOGIN__PROVIDER="google"+```### Gravatar images@@ -119,342 +276,292 @@ You can override this behavior by setting `gravatar_fallback_image` to a differeFor supported values, please see [en.gravatar.com/site/implement/images/](https://en.gravatar.com/site/implement/images/)+*default: 404*-### Attachments storage+```yaml+OPENPROJECT_GRAVATAR__FALLBACK__IMAGE="identicon"+```-You can modify the folder that attachments are stored locally. Use the `attachments_storage_path` configuration variable for that. But ensure that you move the existing paths. To find out the current path on a packaged installation, use `openproject config:get ATTACHMENTS_STORAGE_PATH`.-To update the path, use `openproject config:set ATTACHMENTS_STORAGE_PATH="/path/to/new/folder"`. Ensure that this is writable by the `openproject` user.+### Attachments storage-### attachment storage type+You can modify the folder that attachments are stored locally. Use the `attachments_storage_path` configuration variable for that. But ensure that you move the existing paths. To find out the current path on a packaged installation, use `openproject config:get ATTACHMENTS_STORAGE_PATH`.-*default: file*+To update the path, use `openproject config:set ATTACHMENTS_STORAGE_PATH="/path/to/new/folder"`. Ensure that this is writable by the `openproject` user. Afterwards issue a restart by `sudo openproject configure`-Attachments can be stored using fog as well. You will have to add further configuration through `fog`, e.g. for Amazon S3:+#### attachment storage type-```-attachments_storage: fog-fog:- directory: bucket-name- credentials:- provider: 'AWS'- aws_access_key_id: 'AKIAJ23HC4KNPWHPG3UA'- aws_secret_access_key: 'PYZO9phvL5IgyjjcI2wJdkiy6UyxPK87wP/yxPxS'- region: 'eu-west-1'-```+Attachments can be stored using e.g. Amazon S3, In order to set these values through ENV variables, add to the file :-In order to set these values through ENV variables, use:+*default: file*-```-<pre>-OPENPROJECT_ATTACHMENTS__STORAGE=fog+```yaml+OPENPROJECT_ATTACHMENTS__STORAGE="fog"OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID="AKIAJ23HC4KNPWHPG3UA"OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY="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"-OPENPROJECT_FOG_CREDENTIALS_PROVIDER=AWS+OPENPROJECT_FOG_CREDENTIALS_PROVIDER="AWS"OPENPROJECT_FOG_CREDENTIALS_REGION="eu-west-1"-OPENPROJECT_FOG_DIRECTORY=uploads-</pre>-+OPENPROJECT_FOG_DIRECTORY="uploads"```#### backend migration-You can migrate attachments between the available backends. One example would be that you change the configuration from-the file storage to the fog storage. If you want to put all the present file-based attachments into the cloud,-you will have to use the following rake task:+You can migrate attachments between the available backends. One example would be that you change the configuration from the file storage to the fog storage. If you want to put all the present file-based attachments into the cloud, you will have to use the following rake task:-```+```bashrake attachments:copy_to[fog]```It works the other way around too:-```+```bashrake attachments:copy_to[file]```-Note that you have to configure the respective storage (i.e. fog) beforehand as described in the previous section.-In the case of fog you only have to configure everything under `fog`, however. Don't change `attachments_storage`-to `fog` just yet. Instead leave it as `file`. This is because the current attachments storage is used as the source-for the migration.+> **NOTE:** that you have to configure the respective storage (i.e. fog) beforehand as described in the previous section. In the case of fog you only have to configure everything under `fog`, however. Don't change `attachments_storage` to `fog` just yet. Instead leave it as `file`. This is because the current attachments storage is used as the source for the migration.### direct uploads-*default: true*+> **NOTE**: This only works for S3 right now. When using fog with another provider this configuration will be `false`. The same goes for when no fog storage is configured, or when the `use_iam_profile` option is used in the fog credentials when using S3.-When using fog attachments uploaded in the frontend will be posted directly-to the cloud rather than going through the OpenProject servers. This allows large attachments to be uploaded-without the need to increase the `client_max_body_size` for the proxy in front of OpenProject.-Also it prevents web processes from being blocked through long uploads.+When using fog attachments uploaded in the frontend will be posted directly to the cloud rather than going through the OpenProject servers. This allows large attachments to be uploaded without the need to increase the `client_max_body_size` for the proxy in front of OpenProject. Also it prevents web processes from being blocked through long uploads.-If, for what ever reason, this is undesirable, you can disable this option.-In that case attachments will be posted as usual to the OpenProject server which then uploads the file-to the remote storage in an extra step.+If, for what ever reason, this is undesirable, you can disable this option. In that case attachments will be posted as usual to the OpenProject server which then uploads the file to the remote storage in an extra step.-**Note**: This only works for S3 right now. When using fog with another provider this configuration will be `false`. The same goes for when no fog storage is configured, or when the `use_iam_profile` option is used in the fog credentials when using S3.+*default: true*-### fog download url expires in+```yaml+OPENPROJECT_DIRECT__UPLOADS="false"+```-*default: 21600*+### fog download url expires in-Example:+When using remote storage for attachments via fog - usually S3 (see [`attachments_storage`](#attachments-storage) option) - each attachment download will generate a temporary URL. This option determines how long these links will be valid.- fog_download_url_expires_in: 60+The default is 21600 seconds, that is 6 hours, which is the maximum expiry time allowed by S3 when using IAM roles for authentication.-When using remote storage for attachments via fog - usually S3 (see [`attachments_storage`](#attachments-storage) option) --each attachment download will generate a temporary URL.-This option determines how long these links will be valid.+*default: 21600*-The default is 21600 seconds, that is 6 hours, which is the maximum expiry time-allowed by S3 when using IAM roles for authentication.+```yaml+OPENPROJECT_FOG__DOWNLOAD__URL__EXPIRES__IN="60"+```-### Overriding the help link+### force help linkYou can override the default help menu of OpenProject by specifying a `force_help_link` option tothe configuration. This value is used for the href of the help link, and the default dropdown is removed.-### Setting an impressum (legal notice) link+*deafult: nil*-You can set a impressum link for your OpenProject instance by setting `impressum_link` to an absolute URL.+```yaml+OPENPROJECT_FORCE__HELP__LINK="https://it-support.example.com"+```-### hidden menu items+### impressum link-*default: {}*+You can set a impressum link (legal notice) for your OpenProject instance by setting `impressum_link` to an absolute URL.-You can disable specific menu items in the menu sidebar for each main menu (such as Administration and Projects).-The following example disables all menu items except 'Users', 'Groups' and 'Custom fields' under 'Administration':+*deafult: nil*+```yaml+OPENPROJECT_IMPRESSUM__LINK="https://impressum.example.com"```-hidden_menu_items:- admin_menu:- - roles- - types- - statuses- - workflows- - enumerations- - settings- - ldap_authentication- - colors- - project_types- - export_card_configurations- - plugins- - info-```--The configuration can be overridden through environment variables.-You have to define one variable for each menu.-For instance 'Roles' and 'Types' under 'Administration' can be disabled by defining the following variable:-```-OPENPROJECT_HIDDEN__MENU__ITEMS_ADMIN__MENU='roles types'-```+### hidden menu items admin menu-### blacklisted routes+You can disable specific menu items in the menu sidebar for each main menu (such as Administration and Projects). The configuration can be done through environment variables. You have to define one variable for each menu that shall be hidden.-*default: []*+*default: {}*-You can blacklist specific routes-The following example forbid all routes for above disabled menu:+For instance 'Roles' and 'Types' under 'Administration' can be disabled by defining the following variable:-```-blacklisted_routes:- - 'admin/info'- - 'admin/plugins'- - 'export_card_configurations'- - 'project_types'- - 'colors'- - 'settings'- - 'admin/enumerations'- - 'workflows/*'- - 'statuses'- - 'types'- - 'admin/roles'+```yaml+OPENPROJECT_HIDDEN__MENU__ITEMS_ADMIN__MENU="roles types"```-The configuration can be overridden through environment variables.+The following example disables all menu items except 'Users', 'Groups' and 'Custom fields' under 'Administration':-```-OPENPROJECT_BLACKLISTED__ROUTES='admin/info admin/plugins'+```yaml+OPENPROJECT_HIDDEN__MENU__ITEMS_ADMIN__MENU="roles types statuses workflows enumerations settings ldap_authentication colors project_types export_card_configurations plugins info"```-### disabled modules+### blacklisted routes-*default: []*+You can blacklist specific routes-Modules may be disabled through the configuration.-Just give a list of the module names either as an array or as a string with values separated by spaces.+*default: []*-**Array example:**+The following example forbid all routes for the second example at the 'hidden menu items admin menu':-```-disabled_modules:- - backlogs- - meetings+```yaml+OPENPROJECT_BLACKLISTED__ROUTES="admin/info admin/plugins export_card_configurations project_types colors settings admin/enumerations workflows/* statuses types admin/roles"```-**String example:**+### disabled modules-```-disabled_modules: backlogs meetings-```+Modules may be disabled through the configuration.+Just give a list of the module names either as an array or as a string with values separated by spaces.-The option to use a string is mostly relevant for when you want to override the disabled modules via ENV variables:+*default: []*-```-OPENPROJECT_DISABLED__MODULES='backlogs meetings'+```yaml+OPENPROJECT_DISABLED__MODULES="backlogs meetings"```-## local checkout path+### local checkout path*default: "repositories"*Remote git repositories will be checked out here.-### APIv3 basic auth control+```yaml+note: to be verified, maybe option was removed, not in environement variables list+```-**default: true**+### apiv3 enable basic auth-You can enable basic auth access to the APIv3 with the following configuration option:+You can control basic auth access to the APIv3 with the following configuration option:-```-apiv3_enable_basic_auth: true+*default: true*++```yaml+OPENPROJECT_APIV3__ENABLE__BASIC__AUTH="false"```### global basic auth*default: none*-You can define a global set of credentials used to authenticate towards API v3.-Example section for `configuration.yml`:+You can define a global set of credentials used to authenticate towards API v3:+```yaml+OPENPROJECT_AUTHENTICATION="{ global_basic_auth: { user: admin, password: adminpw } }"```++This example in the old `configuration.yml` looked like this:++```yamldefault:authentication:global_basic_auth:user: admin- password: admin+ password: adminpw```-## Security badge+### security badge displayed-OpenProject now provides a release indicator (security badge) that will inform administrators of an OpenProject-installation on whether new releases or security updates are available for your platform.+OpenProject provides a release indicator (security badge) that will inform administrators of an OpenProject installation on whether new releases or security updates are available for your platform. If enabled, this option will display a badge with your installation status at Administration > Information right next to the release version, and on the home screen. It is only displayed to administrators.-If enabled, this option will display a badge with your installation status at Administration > Information right next to the release version,-and on the home screen. It is only displayed to administrators.+The badge will match your current OpenProject version against the official OpenProject release database to alert you of any updates or known vulnerabilities. To ensure the newest available update can be returned, the check will include your installation type, current version, database type, enterprise status and an anonymous unique ID of the instance. To localize the badge, the user's locale is sent. No personal information of your installation or any user within is transmitted, processed, or stored.-The badge will match your current OpenProject version against the official OpenProject release database to alert you of any updates or known vulnerabilities.-To ensure the newest available update can be returned, the check will include your installation type, current version, database type, enterprise status and an anonymous unique ID of the instance.-To localize the badge, the user's locale is sent. No personal information of your installation or any user within is transmitted, processed, or stored.+To disable rendering the badge, uncheck the setting at Administration > System settings > General or pass the configuration flag `security_badge_displayed: false` .-To disable rendering the badge, uncheck the setting at Administration > System settings > General or pass-the configuration flag `security_badge_displayed: false` .+*default=true*-## Cache options:+```yaml+OPENPROJECT_SECURITY__BADGE__DISPLAYED="false"+```-* `rails_cache_store`: `memcache` for [memcached](https://www.memcached.org/) or `memory_store` (default: `file_store`)-* `cache_memcache_server`: The memcache server host and IP (default: `127.0.0.1:11211`)-* `cache_expires_in`: Expiration time for memcache entries (default: `0`, no expiry)-* `cache_namespace`: Namespace for cache keys, useful when multiple applications use a single memcache server (default: none)+### Cache configuration options-## Asset options:+* `rails_cache_store`: `memcache` for [memcached](https://www.memcached.org/) or `memory_store` (default: `file_store`)+* `cache_memcache_server`: The memcache server host and IP (default: `nil`)+* `cache_expires_in`: Expiration time for memcache entries (default: `nil`, no expiry)+* `cache_namespace`: Namespace for cache keys, useful when multiple applications use a single memcache server (default: `nil`)-* `rails_asset_host`: A custom host to use to serve static assets such as javascript, CSS, images, etc. (default: `nil`)+### rails asset host-## Onboarding variables:+`rails_asset_host`: A custom host to use to serve static assets such as javascript, CSS, images, etc. (default: `nil`)-* `onboarding_video_url`: An URL for the video displayed on the onboarding modal. This is only shown when the user logs in for the first time.+### onboarding video url-### Enterprise Limits+`onboarding_video_url`: An URL for the video displayed on the onboarding modal. This is only shown when the user logs in for the first time.-If using an Enterprise token there are certain limits that apply.-You can configure how these limits are enforced.+*default="[https://player.vimeo.com/video/163426858?autoplay=1](https://player.vimeo.com/video/163426858?autoplay=1)"*-#### `fail_fast`+### enterprise fail fast-*default: false*+If using an Enterprise token there are certain limits that apply. You can configure how these limits are enforced.If you set `fail_fast` to true, new users cannot be invited or registered if the user limit has been reached.If it is false then you can still invite and register new users but their activation will fail until theuser limit has been increased (or the number of active users decreased).-Configured in the `configuration.yml` like this:+*default: false*-```-enterprise:- fail_fast: true+```yaml+OPENPROJECT_ENTERPRISE="{ fail_fast: true }"```-Or through the environment like this:+Which is the same as:-```+```yamlOPENPROJECT_ENTERPRISE_FAIL__FAST=true```-### Backup enabled+This example in the old `configuration.yml` looked like this:-*default: true*+```yaml+enterprise:+ fail_fast: true+```++### backup configuration++#### backup enabledIf enabled, admins (or users with the necessary permission) can download backups of the OpenProject installationvia OpenProject's web interface or via the API.-There are further configurations you can use to adjust your backups.+*default: true*-```-backup_enabled: true # enable/disable backups feature-backup_daily_limit: 3 # number of times backups can be requested per day across all users-backup_initial_waiting_period: 24.hours # time after which new backup token is usable-backup_include_attachments: true # include/exclude attachments besides db dump-backup_attachment_size_max_sum_mb: 1024 # if all attachments together are larger than this, they will not be included+```yaml+OPENPROJECT_BACKUP__ENABLED="false"```-Per default the maximum overall size of all attachments must not exceed 1GB for them to be included-in the backup. If they are larger only the database dump will be included.+#### backup attachment size max sum mb-As usual this can be override via the environment, for example like this:+Per default the maximum overall size of all attachments must not exceed 1GB for them to be included in the backup. If they are larger only the database dump will be included.-```-OPENPROJECT_BACKUP__ENABLED=true-OPENPROJECT_BACKUP__INCLUDE__ATTACHMENTS=true-OPENPROJECT_BACKUP__ATTACHMENT__SIZE__MAX__SUM__MB=1024+*default=1024*++```yaml+OPENPROJECT_BACKUP__ATTACHMENT__SIZE__MAX__SUM__MB="8192"```-### Show community links+#### additional configurations for backup-If you would like to hide the homescreen links to the OpenProject community, you can do this with the following configuration:--```-OPENPROJECT_SHOW__COMMUNITY__LINKS=false+```yaml+OPENPROJECT_BACKUP__DAILY__LIMIT="3"+OPENPROJECT_BACKUP__INCLUDE__ATTACHMENTS="true"+OPENPROJECT_BACKUP__INITIAL__WAITING__PERIOD="86400"```-### Web+### show community links++If you would like to hide the homescreen links to the OpenProject community, you can do this with the following configuration:-Configuration of the main ruby web server (currently puma). Sensible defaults are provided.+*default=true*```-web:- workers: 2 # number of server processes- timeout: 60 # seconds before a request times out- wait_timeout: 10 # seconds before a request waiting to be served times out- min_threads: 4- max_threads: 16+OPENPROJECT_SHOW__COMMUNITY__LINKS=false```-**Note:** Timeouts only are supported when using at least 2 workers.+### web-As usual these values can be overridden via the environment.+Configuration of the main ruby web server (currently puma). Sensible *defaults* are provided.-```-OPENPROJECT_WEB_WORKERS=2-OPENPROJECT_WEB_TIMEOUT=60 # overridden by: RACK_TIMEOUT_SERVICE_TIMEOUT-OPENPROJECT_WEB_WAIT__TIMEOUT=10 # overridden by: RACK_TIMEOUT_WAIT_TIMEOUT-OPENPROJECT_WEB_MIN__THREADS=4 # overridden by: RAILS_MIN_THREADS-OPENPROJECT_WEB_MAX__THREADS=16 # overridden by: RAILS_MAX_THREADS+```yaml+OPENPROJECT_WEB_WORKERS="2"+OPENPROJECT_WEB_TIMEOUT="60"+OPENPROJECT_WEB_WAIT__TIMEOUT="10"+OPENPROJECT_WEB_MIN__THREADS="4"+OPENPROJECT_WEB_MAX__THREADS="16"```-### Two-factor authentication+> **NOTE:** Timeouts only are supported when using at least 2 workers.-**Note::** These configuration variables are only applied in an Enterprise Edition+### 2fa enforcedYou can set the available 2FA strategies and/or enforce or disable 2FA system-wide.@@ -463,7 +570,7 @@ You can set the available 2FA strategies and/or enforce or disable 2FA system-wiTo enforce every user requires 2FA, you can use the checkbox under System settings > Authentication > Two-factor authentication.However, if you also want to ensure administrators cannot uncheck this, use the following variable-```+```yamlOPENPROJECT_2FA_ENFORCED="true"```@@ -471,18 +578,16 @@ OPENPROJECT_2FA_ENFORCED="true"By default, the TOTP strategy for phone authenticator apps is active.+If you have a [MessageBird account](https://www.messagebird.com/), you can setup a SMS 2FA by activating that strategy like so:-If you have a [MessageBird account](https://www.messagebird.com/),-you can setup a SMS 2FA by activating that strategy like so:--```+```yamlOPENPROJECT_2FA_ACTIVE__STRATEGIES="[totp,message_bird]"OPENPROJECT_2FA_MESSAGE__BIRD_APIKEY="your api key here"```You can also use Amazon SNS to send SMS for authentication:-```+```yamlOPENPROJECT_2FA_ACTIVE__STRATEGIES="[totp,sns]"OPENPROJECT_2FA_SNS_ACCESS__KEY__ID="YOUR KEY ID"OPENPROJECT_2FA_SNS_SECRET__ACCESS__KEY="YOUR SECRET KEY"@@ -491,7 +596,7 @@ OPENPROJECT_2FA_SNS_REGION="AWS REGION"To disable 2FA altogether and remove all menus from the system, so that users cannot register their 2FA devices:-```+```yamlOPENPROJECT_2FA_DISABLED="true"OPENPROJECT_2FA_ACTIVE__STRATEGIES="[]```@@ -500,35 +605,25 @@ OPENPROJECT_2FA_ACTIVE__STRATEGIES="[]*default: { host: nil, port: 8125 }*-OpenProject can push metrics to [statsd](https://github.com/statsd/statsd).-Currently these are simply the metrics for the puma server-but this may include more in the future.+OpenProject can push metrics to [statsd](https://github.com/statsd/statsd). Currently these are simply the metrics for the puma server, but this may include more in the future.-This is disabled by default unless a host configured.+This is disabled by default unless a host is configured.-```-statsd:- host: 127.0.0.1- port: 8125-```--Or via the environment:--```-OPENPROJECT_STATSD_HOST=127.0.0.1 # overridden by: STATSD_HOST-OPENPRJOECT_STATSD_PORT=8125 # overridden by: STATSD_PORT+```yaml+OPENPROJECT_STATSD_HOST="127.0.0.1"+OPENPRJOECT_STATSD_PORT="8125"```-## Other Configuration Topics+## Other configuration topics-| Topic | Content |-|---------------------------------------------------------------|:-----------------------------------------------------------------------------------------|-| [List of supported environment variables](./environment) | The full list of environment variables you can use to override the default configuration |-| [Configuring SSL](./ssl) | How to configure SSL so that your OpenProject installation is available over HTTPS |-| [Configuring outbound emails](./outbound-emails) | How to configure outbound emails for notifications, etc. |-| [Configuring inbound emails](./incoming-emails) | How to configure inbound emails for work package updates directly from an email |-| [Configuring a custom database](./database) | How to use an external database |-| [Configuring a custom web server](./server) | How to use a custom web server (e.g. NginX) with your OpenProject installation |-| Configuring a custom caching server | How to use a custom caching server with your OpenProject installation |-| [Configuring Git and Subversion repositories](./repositories) | How to integrate Git and Subversion repositories into OpenProject |-| [Adding plugins](./plugins) | How to add plugins to your OpenProject installation |+| Topic | Content |+| ------------------------------------------------------------ | :----------------------------------------------------------- |+| [List of supported environment variables](./environment) | The full list of environment variables you can use to override the default configuration |+| [Configuring SSL](./ssl) | How to configure SSL so that your OpenProject installation is available over HTTPS |+| [Configuring outbound emails](./outbound-emails) | How to configure outbound emails for notifications, etc. |+| [Configuring inbound emails](./incoming-emails) | How to configure inbound emails for work package updates directly from an email |+| [Configuring a custom database](./database) | How to use an external database |+| [Configuring a custom web server](./server) | How to use a custom web server (e.g. NginX) with your OpenProject installation |+| Configuring a custom caching server | How to use a custom caching server with your OpenProject installation |+| [Configuring Git and Subversion repositories](./repositories) | How to integrate Git and Subversion repositories into OpenProject |+| [Adding plugins](./plugins) | How to add plugins to your OpenProject installation |diff --git a/docs/installation-and-operations/configuration/database/README.md b/docs/installation-and-operations/configuration/database/README.mdindex 8bf21d15729..460fc41db6f 100644--- a/docs/installation-and-operations/configuration/database/README.md+++ b/docs/installation-and-operations/configuration/database/README.md@@ -12,8 +12,7 @@ Simply run `sudo openproject reconfigure`, and when the database wizard is displ## Docker-based installation-If you run the all-in-one container, you can simply pass a custom-`DATABASE_URL` environment variable on the docker command-line, which could+If you run the all-in-one container, you can simply pass a custom `DATABASE_URL` environment variable on the docker command-line, which couldpoint to an external database.Example:@@ -22,9 +21,9 @@ Example:docker run -d ... -e DATABASE_URL=postgres://user:pass@host:port/dbname openproject/community:12```-If you run the Compose based docker stack, you can simply override the `DATABASE_URL` environment variable, and remove the `db` service from the `docker-compose.yml` file. Be careful, because by pulling a new version `docker-compose.yml` might get replaced. Best practice is using the file `docker-compose.override.yml` instead. Then you can restart the stack with:+Best practice is using the file `docker-compose.override.yml`. If you run the Compose based docker stack, you can simply override the `DATABASE_URL` environment variable, and remove the `db` service from the `docker-compose.yml` file, but because by pulling a new version `docker-compose.yml` might get replaced. Then you can restart the stack with:-```+```bashdocker-compose downdocker-compose up -d```diff --git a/docs/installation-and-operations/configuration/environment/README.md b/docs/installation-and-operations/configuration/environment/README.mdindex 02830ccfdaa..bc17f168dac 100644--- a/docs/installation-and-operations/configuration/environment/README.md+++ b/docs/installation-and-operations/configuration/environment/README.md@@ -8,6 +8,8 @@ sidebar_navigation:# Environment variables+> **NOTE:** This documentation is for OpenProject on-premises Installations only, if you would like to setup similar in your OpenProject cloud instance, please contact us at [email protected]+When using environment variables, you can set the options by setting environment variables with the name of the options below in uppercase. So for example, to configure email delivery via an SMTP server, you can set the following environment variables:```bash@@ -23,7 +25,7 @@ SMTP_ENABLE_STARTTLS_AUTO="true"In case you want to use environment variables, but you have no easy way to set them on a specific system, you can use the [dotenv](https://github.com/bkeepers/dotenv) gem. It automatically sets environment variables written to a .env file for a Rails application.-+Please be aware that **only those variables shall be edited which are documented** as not everything is meant to be configured or bend.### Nested values@@ -49,7 +51,7 @@ storage config above like this:OPENPROJECT_STORAGE_TYPE=nfs```-## Passing data structures+## Passing data structures to the appThe configuration uses YAML to parse overrides from ENV. Using YAML inline syntax, you can:@@ -64,6 +66,22 @@ Example: `{!ruby/symbol key: !ruby/symbol value}` will be parsed as `{ key: :valPlease note: The Configuration is a HashWithIndifferentAccess and thus it should be irrelevant for hashes to use symbol keys.+Here an Example:++Configured in the `/etc/openproject/conf.d/env` like this:++```yaml+OPENPROJECT_ENTERPRISE_FAIL__FAST=true++# is the same as++OPENPROJECT_ENTERPRISE="{ fail_fast: true }"++# in the old configration.yml it looked like this++enterprise:+ fail_fast: true+```# Supported environment variablesdiff --git a/docs/installation-and-operations/configuration/plugins/README.md b/docs/installation-and-operations/configuration/plugins/README.mdindex 2cf3d2ec6b3..c357fd9dc90 100644--- a/docs/installation-and-operations/configuration/plugins/README.md+++ b/docs/installation-and-operations/configuration/plugins/README.md@@ -34,13 +34,13 @@ We suggest to store the Gemfile under `/etc/openproject/Gemfile.custom`, but theYou have to tell your installation to use the custom gemfile via a config setting:-```-openproject config:set CUSTOM_PLUGIN_GEMFILE=/etc/openproject/Gemfile.custom+```bash+openproject config:set CUSTOM_PLUGIN_GEMFILE="/etc/openproject/Gemfile.custom"```If your plugin links into the Angular frontend, you will need to set the following environment variable to ensure it gets recompiled. Please note that NPM dependencies will be installed during the installation, and the angular CLI compilation will take place which will delay the configuration process by a few minutes.-```+```bashopenproject config:set RECOMPILE_ANGULAR_ASSETS="true"```@@ -52,8 +52,8 @@ openproject config:set RECOMPILE_ANGULAR_ASSETS="true"To re-bundle the application including the new plugins, as well as running migrations and precompiling their assets, simply re-run the installer while using the same configuration as before.-```-openproject configure+```bash+sudo openproject configure```Using configure will take your previous decisions in the installer and simply re-apply them, which is an idempotent operation. It will detect the Gemfile config option being set and re-bundle the application with the additional plugins.diff --git a/docs/installation-and-operations/configuration/repositories/README.md b/docs/installation-and-operations/configuration/repositories/README.mdindex bf3dd1709a5..fc14fab05fd 100644--- a/docs/installation-and-operations/configuration/repositories/README.md+++ b/docs/installation-and-operations/configuration/repositories/README.md@@ -1,3 +1,5 @@+> #### **NOTE:** This documentation is most likely outdated and needs to be used carefully+# Repository Integration in OpenProjectOpenProject can (by default) browse Subversion and Git repositories, but it does not serve them to git/svn clients.@@ -15,7 +17,7 @@ This functionality is extended with managed repositories, whose life spans are a## Managed RepositoriesYou can create repositories explicitly on the filesystem using *managed* repositories.-Managed repositories need to be enabled manually for each SCM vendor individually using the `configuration.yml`.+Managed repositories need to be enabled manually for each SCM vendor individually by configuring `configuration.yml`It contains a YAML configuration section for repository management residing under the namespace `scm`.The following is an excerpt of the configuration and contains all required information to set up your data.@@ -264,7 +266,7 @@ For more information, see the section 'Managing Repositories Remotely'.We provide an example apache configuration. Some details are explained inline as comments.-+## Git Integrationdiff --git a/docs/installation-and-operations/configuration/server/README.md b/docs/installation-and-operations/configuration/server/README.mdindex 5f3ca75d3e5..563042bae43 100644--- a/docs/installation-and-operations/configuration/server/README.md+++ b/docs/installation-and-operations/configuration/server/README.md@@ -6,13 +6,15 @@ sidebar_navigation:# Configuring a custom web server-Both the packaged and docker-based installations ship with Apache as the default web server, because the Git and SVN repository integrations (when OpenProject manages the repositories) only work with that web server.+Both the packaged and docker-based installations ship with Apache2 as the default web server, because the Git and SVN repository integrations (when OpenProject manages the repositories) only work with Apache2.-For a packaged-based installation, if for instance you wish to use NginX, you will need to skip the web server installation when asked in the initial configuration, and then configure NginX yourself so that it forwards traffic to the OpenProject web process (listening by default on 127.0.0.1:6000).If using SSL/TLS, please ensure you set the header value `X-Forwarded-Proto https` so OpenProject can correctly produce responses.+For a packaged-based installation, if for instance you wish to use NginX, you will need to skip the web server installation when asked in the initial configuration, and then configure NginX yourself so that it forwards traffic to the OpenProject web process (listening by default on 127.0.0.1:6000). If using SSL/TLS, please ensure you set the header value `X-Forwarded-Proto https` so OpenProject can correctly produce responses.-For a docker-based installation, you will need to use the (recommended) Compose stack, which will allow you to swap the `proxy` container with whatever server you want to use.+For a docker-based installation, you will need to use the (recommended) docker-compose stack, which will allow you to swap the `proxy` container with whatever server you want to use.-For instance you could define a new proxy server like this:+The following example is for NginX as a custom web server:++For instance you could define a new proxy server like this in the `docker-compose.override.yml`:```yamlservices:diff --git a/docs/installation-and-operations/configuration/ssl/README.md b/docs/installation-and-operations/configuration/ssl/README.mdindex 15cc78bac83..5a05ed568a4 100644--- a/docs/installation-and-operations/configuration/ssl/README.md+++ b/docs/installation-and-operations/configuration/ssl/README.md@@ -8,25 +8,20 @@ sidebar_navigation:## Package-based installation (DEB/RPM)-SSL configuration can be applied on the first installation, or at any time by reconfiguring the application with:+SSL configuration can be applied any time by reconfiguring the application with:```bashsudo openproject reconfigure```-You will be prompted with the same dialogs than on the [initial configuration](../../installation/packaged/#step-3-apache2-web-server-and-ssl-termination) guide. This assumes that you select the **install** option when the **server/autoinstall** dialog appears, and that you have certificate and key files available on your server at a path you know.+You will be prompted with the same dialogs than on the [initial configuration](../../installation/packaged/#step-3-apache2-web-server-and-ssl-termination) guide. This assumes that you select the **install** option when the **server/autoinstall** dialog appears, and that you have certificate and key files available on your server at a known path.## Docker-based installation-The current Docker image does not support SSL by default. Usually you would-already have an existing Apache or NginX server on your host, with SSL-configured, which you could use to set up a simple ProxyPass rule to direct-traffic to the container. Or one of the myriad of other tools (e.g. Traefik) offered by the Docker community to handle this aspect.+The current Docker image does not use SSL by default. Usually you would already have an existing Apache or NginX server (container) on your host, with SSL configured, which you could use to set up a simple ProxyPass rule to direct traffic to the container. Or one of the myriad of other tools (e.g. Traefik) offered by the Docker community to handle this aspect.-If you really want to enable SSL from within the container, you could try-mounting a custom apache2 directory when you launch the container with `-v-my/apache2/conf:/etc/apache2`. This would entirely replace the configuration-we're using.+If you really want to enable SSL from within the container, you could try mounting a custom apache2 directory when you launch the container with `-v+my/apache2/conf:/etc/apache2`. This would entirely replace the configuration we're using.## Create a free SSL certificate using let's encrypt@@ -38,7 +33,9 @@ This requires your OpenProject server to be reachable using a domain name (e.g.2. Follow the installation instructions to get the `certbot` CLI installed.3. Run the `certbot` CLI to generate the certificate (and only the certificate):- sudo certbot certonly --apache+ ```bash+ sudo certbot certonly --apache+ ```The CLI will ask for a few details and to agree to the Let's Encrypt terms of usage. Then it will perform the Let's Encrypt challenge and finally issue a certificate file and a private key file if the challenge succeeded.@@ -54,7 +51,9 @@ This requires your OpenProject server to be reachable using a domain name (e.g.4. Let's Encrypt certificates are only valid for 90 days. An entry in your OS crontab should have automatically been added when `certbot` was installed. You can optionally confirm that the renewal will work by issuing the following command in dry-run mode:- sudo certbot renew --dry-run+ ```bash+ sudo certbot renew --dry-run+ ```## External SSL termination@@ -78,7 +77,7 @@ If you're terminating SSL on the outer server, you need to set the `X-Forwarded--Finally, to let OpenProject know that it should create links with 'https' when no request is available (for example, when sending emails), you need to set the Protocol setting of OpenProject to `https`. You can set this configuration by setting the ENV `OPENPROJECT_HTTPS=true`.+Finally, to let OpenProject know that it should create links with 'https' when no request is available (for example, when sending emails), you need to set the Protocol setting of OpenProject to `https`. You can set this configuration by setting the ENV `OPENPROJECT_HTTPS="true"`._<sup>1</sup> In the packaged installation this means you selected "no" when asked for SSL in the configuration wizard but at the same time take care of SSL termination elsewhere. This can be a manual Apache setup on the same server (not recommended) or an external server, for instance._diff --git a/docs/installation-and-operations/installation/docker/README.md b/docs/installation-and-operations/installation/docker/README.mdindex 607076f21d7..58eff741d3c 100644--- a/docs/installation-and-operations/installation/docker/README.md+++ b/docs/installation-and-operations/installation/docker/README.md@@ -6,13 +6,9 @@ sidebar_navigation:# Install OpenProject with Docker-[Docker](https://www.docker.com/) is a way to distribute self-contained applications easily. We-provide a Docker image for the Community Edition that you can very easily-install and upgrade on your servers. However, contrary to the manual or-package-based installation, your machine needs to have the Docker Engine-installed first, which usually requires a recent operating system. Please see-the [Docker Engine installation page](https://docs.docker.com/install) if you don't have Docker-installed.+[Docker](https://www.docker.com/) is a way to distribute self-contained applications easily. We provide a Docker image for the Community Edition that you can very easily+install and upgrade on your servers. However, contrary to the manual or package-based installation, your machine needs to have the Docker Engine+installed first, which usually requires a recent operating system. Please see the [Docker Engine installation page](https://docs.docker.com/install) if you don't have Docker installed.OpenProject with Docker can be launched in two ways:@@ -50,7 +46,7 @@ OPENPROJECT_HTTPS=false docker-compose up -dAfter a while, OpenProject should be up and running on `http://localhost:8080`. The default username and password is login: `admin`, and password: `admin`. You need to explicitly disable HTTPS mode on startup as OpenProject assumes it's running behind HTTPS in production by default.-Note that the `docker-compose.yml` file present in the repository can be adjusted to your convenience. With each pull it will be overwritten. Best practice is to use the file `docker-compose.override.yml` for that case. For instance you could mount specific configuration files, override environment variables, or switch off services you don't need. Please refer to the official [Docker Compose documentation](https://docs.docker.com/compose/extends/) for more details.+> **Note:** The `docker-compose.yml` file present in the repository can be adjusted to your convenience. With each pull it will be overwritten. Best practice is to use the file `docker-compose.override.yml` for that case. For instance you could mount specific configuration files, override environment variables, or switch off services you don't need. Please refer to the official [Docker Compose documentation](https://docs.docker.com/compose/extends/) for more details.You can stop the Compose stack by running:@@ -71,27 +67,12 @@ If you want to start from scratch and remove the existing data you will have to### Configuration-In the compose folder you will find the file `docker-compose.yml` which can be edited.-Although we recommend using `docker-compose.override.yml`.-Please be aware that only those variables shall be edited which are documented as not everything is meant to be configured or bend.+Please see the [advanced configuration guide's docker paragraphs](../configuration#docker)#### BIM EditionIn order to install or change to BIM inside a Docker environment, please navigate to the [Docker Installation for OpenProject BIM](../../bim-edition/#docker-installation-openproject-bim) paragraph at the BIM edition documentation.-### Disabling services in the docker-compose file--If you have an override file created, it is also easy to disable certain services, such as the database container if you have an external one running anyway.--To do that, add this section to the file:--```yaml-services:- db:- deploy:- replicas: 0-```-## All-in-one container### Quick Start@@ -194,121 +175,16 @@ docker stop openprojectdocker rm openproject```-### Initial configuration--OpenProject is usually configured through a YAML file, but with the Docker-image you need to pass all configuration through environment variables. You can-overwrite any of the values usually found in the standard YAML file by using-[environment variables](../../configuration/environment).----#### All-in-one container--Environment variables can be either passed directly on the command-line to the-Docker Engine, or via an environment file:--```bash-docker run -d -e KEY1=VALUE1 -e KEY2=VALUE2 ...-# or-docker run -d --env-file path/to/file ...-```----#### Docker-compose setup--For the docker-compose setup, we recommend you copy the upstream docker-compose.yml and adjust it to your needs. Please observe any changes when updating to the latest versions.--To add an environment variable manually to the docker-compose file, add it to the `environment:` section of the `op-x-app` definition like in the following example:--```yaml-version: "3.7"--networks:- frontend:- backend:--volumes:- pgdata:- opdata:--x-op-restart-policy: &restart_policy- restart: unless-stopped-x-op-image: &image- image: openproject/community:${TAG:-12}-x-op-app: &app- <<: [*image, *restart_policy]- environment:- OPENPROJECT_HTTPS: true- # ... other configuration- RAILS_CACHE_STORE: "memcache"- OPENPROJECT_CACHE__MEMCACHE__SERVER: "cache:11211"- OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"- DATABASE_URL: "${DATABASE_URL:-postgres://postgres:p4ssw0rd@db/openproject?pool=20&encoding=unicode&reconnect=true}"- RAILS_MIN_THREADS: 4- RAILS_MAX_THREADS: 16- # set to true to enable the email receiving feature. See ./docker/cron for more options- IMAP_ENABLED: "${IMAP_ENABLED:-false}"- volumes:- - "${OPDATA:-opdata}:/var/openproject/assets"--# configuration cut off at this point.-# Please use the file at https://github.com/opf/openproject-deploy/blob/stable/12/compose/docker-compose.yml-```----Alternatively, you can also use an env file for docker-compose like so:--First, add a `.env` file with some variable:-```-OPENPROJECT_HTTPS=true-```--And then you'll need to pass the environment variable to the respective containers you want to set it on. For most OpenProject environment variables, this will be for `x-op-app`:--```yaml-version: "3.7"--networks:- frontend:- backend:--volumes:- pgdata:- opdata:--x-op-restart-policy: &restart_policy- restart: unless-stopped-x-op-image: &image- image: openproject/community:${TAG:-12}-x-op-app: &app- <<: [*image, *restart_policy]- environment:- OPENPROJECT_HTTPS: ${OPENPROJECT_HTTPS}- # ... more environment variables--# configuration cut off at this point.-# Please use the file at https://github.com/opf/openproject-deploy/blob/stable/12/compose/docker-compose.yml-```----Let's say you have a `.env.prod` file with some production-specific configuration. Then, start the services with that special env file specified.--```-docker-compose --env-file .env.prod up-```-+### Configuration+Please see the [advanced configuration guide's docker paragraphs](../configuration#docker)#### Disabling HTTPS modeBy default, OpenProject will expect a HTTPS request in production systems.In most cases, you will have an external web server or load balancer terminating the SSL/TLS connection and proxy/reverse-proxy to the docker container. You will then have to set up the web server to forward the protocol information (usually, this is `X-Forwarded-Proto` but depends on your web server).-**Note**: This does not imply the docker container itself is running on SSL.+> **NOTE**: This does not imply the docker container itself is running on SSL.If you _really_ want to disable HTTPS responses by OpenProject, you will need to add the environment variable `OPENPROJECT_HTTPS=false`. Note that this will disable secure cookies for session cookies, and is strongly discouraged for any production system.@@ -356,7 +232,7 @@ described above.Assuming the desired *server name* is `openproject.example.com` the configurationwill look like this:-> **Note:** There is [another example](../packaged/#external-ssltls-termination) for external SSL/TLS termination for **packaged** installations+> **NOTE:** There is [another example](../packaged/#external-ssltls-termination) for external SSL/TLS termination for **packaged** installations```<VirtualHost *:80>@@ -677,7 +553,7 @@ x-op-app: &appAny additional configuration of OpenProject happens in the environment section (like for S3 above) of the app inside of the `openproject-stack.yml`.For instance should you want to disable an OpenProject module globally, you would add the following:-```+```yamlx-op-app: &app<<: *image<<: *restart_policy@@ -694,13 +570,13 @@ on what you can configure and how.Once you made any necessary adjustments to the `openproject-stack.yml` you are ready to launch the stack.-```-docker stack deploy -c openproject-stack.yaml openproject+```bash+docker stack deploy -c openproject-stack.yml openproject```Once this has finished you should see something like this when running `docker service ls`:-```+```bashdocker service lsID NAME MODE REPLICAS IMAGE PORTSkpdoc86ggema openproject_cache replicated 1/1 memcached:latest@@ -737,13 +613,13 @@ Also at least 2 worker (`openproject_worker`) replicas make sense to handle theIf you find that it takes too long for those tasks (such as sending emails or work package exports) to completeyou may want to increase this number further.-```+```bashdocker service scale openproject_proxy=2 openproject_web=6 openproject_worker=2```This will take a moment to converge. Once done you should see something like the following when listing the services using `docker service ls`:-```+```bashdocker service lsID NAME MODE REPLICAS IMAGE PORTSkpdoc86ggema openproject_cache replicated 1/1 memcached:latestdiff --git a/docs/installation-and-operations/installation/packaged/README.md b/docs/installation-and-operations/installation/packaged/README.mdindex 5ffb88dcd84..726ac9e7eb3 100644--- a/docs/installation-and-operations/installation/packaged/README.md+++ b/docs/installation-and-operations/installation/packaged/README.md@@ -298,7 +298,8 @@ sudo yum install openprojectThen finish the installation by reading the [*Initial configuration*](#initial-configuration) section.-**Note:** On this distribution full-text extraction for attachments [*is not supported*](#full-text-extraction-not-supported) by default.+> **Note:** On this distribution full-text extraction for attachments [*is not supported*](#full-text-extraction-not-supported) by default.+>### CentOS 7 / RHEL 7@@ -370,11 +371,12 @@ sudo openproject reconfigure #interactive - manual choices are stored in /etc/opsudo openproject configure #non-interactive - using values stored in /etc/openproject/installer.dat```-**Notes:**--* Every time you will run the OpenProject wizard, by using `sudo openproject reconfigure` your choices will be persisted in a configuration file at `/etc/openproject/installer.dat` and subsequent executions of `sudo openproject configure` will re-use these values, only showing you the wizard steps for options you have not yet been asked for.--* In the interactive way you can skip dialogs you do not want to change simply by confirming them with `ENTER`.+> **Notes:**+>+> * Every time you will run the OpenProject wizard, by using `sudo openproject reconfigure` your choices will be persisted in a configuration file at `/etc/openproject/installer.dat` and subsequent executions of `sudo openproject configure` will re-use these values, only showing you the wizard steps for options you have not yet been asked for.+>+> * In the interactive way you can skip dialogs you do not want to change simply by confirming them with `ENTER`.+>## Step 1: Select your OpenProject Edition