diff --git a/conf/.env b/conf/.env index 503b3fa..a4e1f59 100644 --- a/conf/.env +++ b/conf/.env @@ -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 diff --git a/conf/nginx.conf b/conf/nginx.conf index 187a66e..6423ceb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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)(/.*)$; diff --git a/manifest.toml b/manifest.toml index 0c0dcca..56f4526 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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"