# Replace "Get your own free account" NC link with /e/ Account link in public pages
RUN sed-i's/https:\/\/nextcloud.com\/signup\//https:\/\/e\.foundation\/<?php p(\$_\[\x27language\x27\]); ?>\/e-email-invite\//'${BASE_DIR}/core/templates/layout.public.php
ENTRYPOINT ["/custom_entrypoint.sh"]
CMD ["php-fpm"]
FROMbaseasselfhost
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
COPY patches/ ${TMP_PATCH_DIR}/
# Patches
COPY patches/ ${TMP_PATCH_DIR}/
RUN patch -u${BASE_DIR}/core/Controller/LoginController.php -i${TMP_PATCH_DIR}/002-login-without-domain.patch
RUN patch -u${BASE_DIR}/core/templates/layout.user.php -i${TMP_PATCH_DIR}/003-contact-search-removal.patch
RUN patch -u${BASE_DIR}/core/Controller/ContactsMenuController.php -i${TMP_PATCH_DIR}/004-contact-search-controller-removal.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-core.patch
RUN cd${BASE_DIR}/custom_apps && patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-custom-app.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/006-recovery-email-changes.patch
RUN patch -u${BASE_DIR}/apps/settings/lib/Settings/Personal/ServerDevNotice.php -i${TMP_PATCH_DIR}/007-remove-dev-notice.patch
RUN patch -u${BASE_DIR}/lib/private/Template/IconsCacher.php -i${TMP_PATCH_DIR}/008-icons-cacher-theme-svgs.patch
RUN patch -u${BASE_DIR}/core/Controller/SvgController.php -i${TMP_PATCH_DIR}/008-svg-controller-theme-svgs.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/009-help-links.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/011-privacy-settings.patch
RUN rm-rf${TMP_PATCH_DIR}
FROMselfhostasecloud
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
COPY patches/ ${TMP_PATCH_DIR}/
# Privacy specific patches
RUN patch -u${BASE_DIR}/core/templates/layout.user.php -i${TMP_PATCH_DIR}/003-contact-search-removal.patch
RUN patch -u${BASE_DIR}/core/Controller/ContactsMenuController.php -i${TMP_PATCH_DIR}/004-contact-search-controller-removal.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-core.patch
RUN cd${BASE_DIR}/custom_apps && patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-custom-app.patch
RUN patch -u${BASE_DIR}/lib/private/Updater.php -i${TMP_PATCH_DIR}/010-disable-app-store-upgrade.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/011-privacy-settings.patch
RUN cd${BASE_DIR}&& patch -u${BASE_DIR}/apps/dashboard/lib/Controller/DashboardController.php -i${TMP_PATCH_DIR}/012-remove-user-status-widget.patch
RUN patch -u${BASE_DIR}/lib/private/Authentication/Token/PublicKeyTokenProvider.php -i${TMP_PATCH_DIR}/013-revert-token-password-update.patch
RUN rm-rf${TMP_PATCH_DIR}
# autocomplete leak tweak apps frontend with sed, disable group suggestion
@@ -163,4 +122,132 @@ RUN cd ${BASE_DIR}/custom_apps/calendar && sed -i 's/{name:\[a,"displayname"\]},
# Set default widgets to calendar, tasks and notes
RUN sed-i's/recommendations,spreed,mail,calendar/calendar,tasks,notes/'${BASE_DIR}/apps/dashboard/lib/Controller/DashboardController.php
RUN rm-rf${TMP_PATCH_DIR}
# Remove colored background from email template logo
RUN sed-i's/$this->header, \[$this->themingDefaults->getColorPrimary()/$this->header, \["none"/'${BASE_DIR}/lib/private/Mail/EMailTemplate.php
# fix min version of google data migration app
RUN sed-i"s/min-version=\"22\"/min-version=\"21\"/"${BASE_DIR}/custom_apps/integration_google/appinfo/info.xml
RUN sed-i's/ in Nextcloud/ /'${BASE_DIR}/custom_apps/integration_google/js/integration_google-personalSettings.js
RUN sed-i's/Nextcloud administrator/administrator/'${BASE_DIR}/custom_apps/integration_google/js/integration_google-personalSettings.js
# Replace "Get your own free account" NC link with /e/ Account link in public pages
RUN sed-i's/https:\/\/nextcloud.com\/signup\//https:\/\/e\.foundation\/<?php p(\$_\[\x27language\x27\]); ?>\/e-email-invite\//'${BASE_DIR}/core/templates/layout.public.php
# Use php 8 image
FROM php:8.0.12-fpm-bullseye
RUN mkdir-p /var/www/skeleton/Documents &&mkdir-p /var/www/skeleton/Images
# Copy all the required files from the nextcloud stage
@@ -61,14 +61,3 @@ We suggest you use our [ecloud-selfhosting](https://gitlab.e.foundation/e/infra/
## Contributing
Anyone can fork a project on our GitLab instance, but to prevent abuse it's disabled by default. Get in touch with us [by e-mail](mailto:join@e.email) or through our support channels and we will let you create a fork and submit MRs.
## Pipeline-Jobs
By default pipeline builds image based on $CI_COMMIT_REF_SLUG. Any branch or tag starting with `selfhost` will build an image for selfhost target. And in all other cases image is built for `ecloud` target. The image is tagged with $CI_COMMIT_REF_SLUG and pushed to registry
**Re-tagging**
There is a provision to create a new tag from an existing image by simply running docker-tag job (manual action). It requires two input parameters, SOURCE and TARGET.
Example: To publish a given image to production you can tag ecloud-21.x.x as ecloud-production, we just have to run `docker-tag` job by providing `SOURCE: ecloud-20.12.10``TARGET: ecloud-production`. Ref : [this job](https://gitlab.e.foundation/e/infra/ecloud/nextcloud/-/jobs/219782)
- <h3><?php p($l->t('Who has access to your data?')) ?></h3>
<h3><?php p($l->t('Who has access to your data?')) ?></h3>
- <h4><?php p($l->t('Administrators')); ?></h4>
- <div id="privacy_access_admins"></div>
+ <h3><?php p($l->t('Who has access to your data?')) ?></h3>
+ <h4><?php p($l->t('People you shared documents or folders with')) ?>:</h4>
+ <div id="privacy_access_shares"></div>
+ <p> </p>
+ <p><?php p($l->t('Like in most cloud services, a reduced number of administrators can see your files and all the information in the database as they need to make backups, perform upgrades, reset passwords, etc.')); ?>
+ rel="noreferrer noopener"><?php p($l->t('To protect your data, we have implemented server-side-encryption on our servers which hides by default the content of your files and notes even to these administrators.')); ?>
+ ↗</a>
+ </p>
+</div>
\ No newline at end of file
+
<h4><?php p($l->t('People you shared with')) ?></h4>
<div id="privacy_access_shares"></div>
+ <h4><?php p($l->t('Administrators')); ?></h4>
+ <p><?php p($l->t('Like in most cloud services, administrators can see your files and all the information in the database as they need to make backups, perform upgrades, reset passwords, etc.')); ?></p>
+ <p><a href="https://doc.e.foundation/support-topics/services#can-the-ecloud-admin-access-my-data" target="_blank" title="" rel="noreferrer noopener"><?php p($l->t('Learn more about this topic here.')); ?> ↗</a></p>