From eb51ab1218187432ae1bd7bf3ce2607bfbdeb92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:48:13 +0100 Subject: [PATCH] fix --- conf/default-settings.php | 10 +++++----- conf/nginx.conf | 3 ++- manifest.toml | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/conf/default-settings.php b/conf/default-settings.php index c03e1c3..7d95810 100644 --- a/conf/default-settings.php +++ b/conf/default-settings.php @@ -179,18 +179,18 @@ $_settings = array( // (OPTIONAL) Email SMTP, used for password reset or other email functions "smtp"=>array( // Email address to email proccessed input values - 'default_emailto' => '', + 'default_emailto' => '__EMAIL__', 'host'=>"localhost", // 25, 465, 587 'port'=>"25", - 'from_email' => '', - 'from_name' => '', + 'from_email' => 'emoncsm@__DOMAIN__', + 'from_name' => 'Emoncsm', // comment lines below that dont apply // ssl, tls 'encryption'=>"", - 'username'=>"", - 'password'=>"" + 'username'=>"__APP__", + 'password'=>"__MAIL_PWD__" ), // Log file configuration diff --git a/conf/nginx.conf b/conf/nginx.conf index 319eef1..2f0fc5c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,9 +7,10 @@ location __PATH__/ { index index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; + client_max_body_size 50M; try_files $uri $uri/ index.php; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; diff --git a/manifest.toml b/manifest.toml index 9b4a916..692749e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -47,8 +47,8 @@ ram.runtime = "50M" url = "https://github.com/emoncms/emoncms/archive/refs/tags/11.4.2.tar.gz" sha256 = "a374ad0a950c5d966b62d54266bf6761d641417785b64fbf6442f7753b386d6f" - [resources.system_user] + allow_email = true [resources.install_dir]