Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1a985a9 authored by Israel Yago Pereira's avatar Israel Yago Pereira
Browse files

Hidding sendmail.php from public

parent f7ddb0fd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,11 +22,12 @@ RUN sed -i 's/ServerSignature On/ServerSignature Off/g' /etc/apache2/conf-enable


COPY --chown=www-data:www-data --from=build /tmp/build/ /var/www/html/
COPY --chown=www-data:www-data /private /var/private/
COPY htdocs/.htaccess /var/www/html/.htaccess
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN echo 'error_log = /var/log/errors.log' >> "$PHP_INI_DIR/php.ini"
RUN chmod u+x /var/www/html/welcome_mails/generate-signup-link.sh
RUN chmod u+x /var/private/generate-signup-link.sh

# copy composer executable from official Docker image
# https://hub.docker.com/_/composer
+1 −1
Original line number Diff line number Diff line
@@ -51,5 +51,5 @@ plugins:
#   - vendor/gems/
#   - vendor/ruby/
languages: ["en", "es", "fr", "de", "it"]
exclude_from_localizations: ["css", "img", "langs", "welcome_mails", "captcha_check.php", "captcha_img.php", "catch_new_invites.php", "create.php", "delete_email_invite.php", "jquery-3.3.1.min.js", "meter.js", "process_apps.php", "register.php", "process_email_invite.php"]
exclude_from_localizations: ["css", "img", "langs", "captcha_check.php", "captcha_img.php", "catch_new_invites.php", "create.php", "delete_email_invite.php", "jquery-3.3.1.min.js", "meter.js", "process_apps.php", "register.php", "process_email_invite.php"]
include: ["_i18n", ".htaccess"]
+1 −1
Original line number Diff line number Diff line
@@ -36,4 +36,4 @@ export WELCOME_SMTP_PW
export SIGNUP_URL
export SIGNUP_RECIPIENT=$EMAIL
export LANG=$LANG
php /var/www/html/welcome_mails/sendmail.php
 No newline at end of file
php /var/private/sendmail.php
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
<?php
require "/var/www/html/vendor/autoload.php";
require_once('../helpers.php');
require_once("/var/www/html/helpers.php");

$to = getenv("SIGNUP_RECIPIENT");
$signup_url = getenv("SIGNUP_URL");