41 Commits

Author SHA1 Message Date
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Markus Kahl 85cb296935 fix package installation (host_name typo) 2024-07-16 11:30:14 +01:00
Oliver Günther 60cff7aed1 Set hosts config when present in config 2024-06-25 16:21:48 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Oliver Günther 6a07de67de Check if host name is writable before trying to override it
https://community.openproject.org/work_packages/49867
2023-09-05 14:27:38 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Oliver Günther 506daae7e6 Rename FORCE_SSL to HSTS in packager setup 2022-08-16 13:33:50 +02:00
Christophe Bliard 8a292d34fe [#43530] Apply "No SSL" as specified with packager
Default value of `Setting.rails_force_ssl` was `false` before
9e3c51299a, and `true` after. As the default value changed to true, it
lead a packaged installation to a forced ssl even if "No SSL" was
chosen.

Instead of unsetting `OPENPROJECT_RAILS__FORCE__SSL` and assume a
default value of `false`, explicitly set it to either `true` or `false`
to fix the problem.
2022-08-04 16:49:41 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Oliver Günther 9e3c51299a Remove Setting.protocol in favor of static config 2022-05-18 16:21:55 +02:00
Christophe Bliard 99af076a4c [#42226] Psych::DisallowedClass: Tried to load unspecified class: URI::Generic while upgrading from 12.01 to 12.10
https://community.openproject.org/work_packages/42226

properly deserialize setting hash value having a URI::Generic inside
2022-05-04 21:33:06 +02:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther eec6e7fca3 Provide a way to set https without hsts
This is required for a customer that uses an external proxy but runs
into issues with HSTS (HOK)

[ci skip]
2019-10-31 07:55:06 +01:00
Oliver Günther 2397608bac Re-add force https flag for packaged installations with apache w/o ssl
[ci skip]
2019-06-27 15:34:55 +02:00
Oliver Günther 5116decf2b Ensure correctly setting http and https flags in packager
[ci skip]
2019-06-11 14:11:31 +02:00
Oliver Günther 009a808587 [30197] Use separate ENV to trigger frontend angular recompilation
This PR introduces two env variables for packaged installations:

- RECOMPILE_RAILS_ASSETS will be set when a server prefix set and
backend assets need to be recompiled or when a custom gemfile is present

- RECOMPILE_ANGULAR_ASSETS will be undefined by default and will result
in skipping angular recompilation if `RECOMPILE_RAILS_ASSETS=true`. Can
be manually set by the user if frontend recompilation is needed (due to
a custom frontend plugin).

https://community.openproject.com/wp/30197
2019-05-23 10:57:47 +02:00
Oliver Günther 17462399a7 Restrict build targets
[ci skip]
2018-12-10 16:04:22 +01:00
Oliver Günther 01fd9cd2e2 Add postgres support in packager 2018-12-10 14:58:23 +01:00
Oliver Günther bff63fb922 Also unset RAILS_FORCE_SSL if disabled in packager 2018-10-30 12:58:00 +01:00
Oliver Günther e0b5f0d58c Clear cache before postinstall
[ci skip]
2018-08-08 15:07:47 +02:00
Oliver Günther 30d7ac28f2 Ensure force_ssl flag does not break SYS api
Revert "Remove force ssl flag"
This reverts commit f5ecdb45b5.

[ci skip]
2018-05-23 07:26:25 +02:00
Oliver Günther f5ecdb45b5 Remove force ssl flag
It will break accessing localhost, e.g., by SVN

[ci skip]
2018-05-22 11:17:54 +02:00
Oliver Günther 450b0fc13d [27763] Ensure session cookie receives secure flag in https
When users enable https in their instance, the session cookie should be `secure` by default.
It currently is only when the configuration `rails_force_ssl` is set.

https://community.openproject.com/wp/268331
2018-05-17 08:25:41 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther a0c5ba0b2a Allow overriding Setting.protocl in packager rake task
When an instance is SSL termination, server/ssl will be false and Setting.protocol will be set to http.
However, the instance's protocol SHOULD be set to https since that is used for link generation

This PR allows to override the ENV coming from packager when the instance is behind ssl termination using `SERVER_PROTOCOL_FORCE_HTTPS`

[ci skip]
2017-07-06 14:11:19 +02:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Oliver Günther ba2c082701 Packager: Clean old assets in post-install step 2016-06-10 09:30:24 +02:00
Oliver Günther a28c5c17ff Allow directory access for third party plugins
Otherwise, apache will reject accessing the asset when a plugin adds a
subdirectory.
2016-04-26 18:04:54 +02:00
Oliver Günther cfa69177f8 Allow custom gems to be installed through a separate source
In a packaged installation, installing custom plugins is unfeasible by
default to them breaking on each upgrade of the package (since the
Gemfile(.lock) is being overridden.

This commit allows users to specify a separated Gemfile, that will be
checked by the package installer.
2016-02-16 17:19:43 +01:00
Oliver Günther b2e7802088 Use generic URI instead of URI::HTTP
Otherwise, the passed scheme is ignored.

[ci skip]
2016-02-09 14:46:52 +01:00
Cyril Rohr bfda0e1e39 Do not attempt to configure SCM if it was skipped 2016-01-28 10:34:24 +00:00
Oliver Günther 83e6bc8ff8 Configure relative root in before_postinstall 2016-01-07 15:23:27 +01:00
Oliver Günther c688e7b939 Include OP-related packager postinstall
The addon-openproject started to bloat due to a number
of rake tasks with environment becoming a necessity.

As any of these rake tasks load the environment, which may take up to 10
seconds, we should strive to include the relevant logic into OpenProject
where possible.
2016-01-07 11:37:03 +01:00