1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/leantime_ynh.git synced 2024-09-03 19:36:04 +02:00
This commit is contained in:
Éric Gaspar 2023-05-08 19:05:08 +02:00
parent 10990d5a6b
commit 115c713b4c
3 changed files with 6 additions and 12 deletions

View file

@ -4,7 +4,7 @@
## Minimum Configuration, these are required for installation
LEAN_APP_URL = '__DOMAIN__' # Base URL, only needed for subfolder installation
LEAN_APP_URL_ROOT = '__PATH__' # Base of application withotu trailing slash (used for cookies), e.g, /leantime
LEAN_APP_URL_ROOT = '' # Base of application withotu trailing slash (used for cookies), e.g, /leantime
LEAN_DEBUG = 1 # Debug flag

View file

@ -6,16 +6,14 @@ location __PATH__/ {
index index.php;
rewrite ^__PATH__/leantime(/.*)$ __PATH__$1 permanent;
rewrite ^__PATH__/?$ __PATH__/index.php?act=dashboard.show last;
rewrite ^__PATH__/([^/\.]+)/([^/\.]+)/?$ __PATH__/index.php?act=$1 last;
rewrite ^__PATH__/([^/\.]+)/([^/\.]+)/?$ __PATH__/index.php?act=$1.$2 last;
rewrite ^__PATH__/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ __PATH__/index.php?act=$1.$2&id=$3 last;
rewrite ^__PATH__(/.*)$ $1 break;
rewrite ^/?$ /index.php?act=dashboard.show;
rewrite ^/([^/\.]+)/?$ /index.php?act=$1;
rewrite ^/([^/\.]+)/([^/\.]+)/?$ /index.php?act=$1.$2;
rewrite ^/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ /index.php?act=$1.$2&id=$3;
client_max_body_size 50M;
#try_files $uri $uri/ __PATH__/index.php;
#try_files $uri $uri/ /index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;

View file

@ -29,10 +29,6 @@ ram.runtime = "50M"
[install.domain]
type = "domain"
[install.path]
type = "path"
default = "/leantime"
[install.init_main_permission]
type = "group"
default = "visitors"