mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Fix install
This commit is contained in:
parent
bb540323e0
commit
c7294bd069
2 changed files with 23 additions and 4 deletions
|
@ -9,10 +9,16 @@ location __PATH__/ {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ __PATH__/app/data {
|
location ^~ __PATH__/data {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
location ^~ /data {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /pgpback/keys {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
location ^~ __PATH__/pgpback/keys {
|
location ^~ __PATH__/pgpback/keys {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,22 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Enable RainLoop Api and include index file
|
if (!defined('APP_VERSION'))
|
||||||
$_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
|
{
|
||||||
include '__FINAL_PATH__/app/index.php';
|
define('APP_VERSION', '1.12.1');
|
||||||
|
define('APP_VERSION_TYPE', 'community');
|
||||||
|
define('APP_INDEX_ROOT_FILE', __FILE__);
|
||||||
|
define('APP_INDEX_ROOT_PATH', str_replace('\\', '/', rtrim(dirname(__FILE__), '\\/').'/'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (file_exists(APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php'))
|
||||||
|
{
|
||||||
|
include APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo '[105] Missing version directory';
|
||||||
|
exit(105);
|
||||||
|
}
|
||||||
// Retrieve email and password
|
// Retrieve email and password
|
||||||
if (isset($_SERVER['HTTP_EMAIL']) && isset($_SERVER['PHP_AUTH_PW'])) {
|
if (isset($_SERVER['HTTP_EMAIL']) && isset($_SERVER['PHP_AUTH_PW'])) {
|
||||||
$email = $_SERVER['HTTP_EMAIL'];
|
$email = $_SERVER['HTTP_EMAIL'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue