Skip to content

Commit

Permalink
feat: add env varibale OWNCLOUD_HTTP_COOKIE_SAMESITE (default unset) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Jun 17, 2021
1 parent a6c55f1 commit 06bed84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ OWNCLOUD_FORWARDED_FOR_HEADERS
OWNCLOUD_HASHING_COST
OWNCLOUD_HAS_INTERNET_CONNECTION
OWNCLOUD_HTACCESS_REWRITE_BASE ${OWNCLOUD_SUB_URL}
OWNCLOUD_HTTP_COOKIE_SAMESITE
OWNCLOUD_INTEGRITY_EXCLUDED_FILES
OWNCLOUD_INTEGRITY_IGNORE_MISSING_APP_SIGNATURE
OWNCLOUD_KNOWLEDGEBASE_ENABLED
Expand Down
4 changes: 4 additions & 0 deletions latest/overlay/etc/templates/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ function getConfigFromEnv() {
$config['appstoreurl'] = getenv('OWNCLOUD_APPSTORE_URL');
}

if (getenv('OWNCLOUD_HTTP_COOKIE_SAMESITE') != '') {
$config['http.cookie.samesite'] = getenv('OWNCLOUD_HTTP_COOKIE_SAMESITE');
}

if (getenv('OWNCLOUD_LOGIN_ALTERNATIVES') != '') {
$rows = explode(',', getenv('OWNCLOUD_LOGIN_ALTERNATIVES'));

Expand Down
4 changes: 4 additions & 0 deletions v20.04/overlay/etc/templates/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ function getConfigFromEnv() {
$config['appstoreurl'] = getenv('OWNCLOUD_APPSTORE_URL');
}

if (getenv('OWNCLOUD_HTTP_COOKIE_SAMESITE') != '') {
$config['http.cookie.samesite'] = getenv('OWNCLOUD_HTTP_COOKIE_SAMESITE');
}

if (getenv('OWNCLOUD_LOGIN_ALTERNATIVES') != '') {
$rows = explode(',', getenv('OWNCLOUD_LOGIN_ALTERNATIVES'));

Expand Down

0 comments on commit 06bed84

Please sign in to comment.