From 0f7270dc41540251dba000964358421f1d9569fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 19 May 2023 19:01:06 +0200 Subject: [PATCH] path --- conf/nginx.conf | 4 +++- manifest.toml | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 8b4b9b1..79b4a06 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,6 +4,8 @@ location __PATH__/ { # Path to source alias __INSTALL_DIR__/; + client_max_body_size 20M; + rewrite "^__PATH__/([a-zA-Z0-9-]+)$" "__PATH__/studs.php?poll=$1"; rewrite "^__PATH__/([a-zA-Z0-9-]+)/action/([a-zA-Z_-]+)/(.+)$" "__PATH__/studs.php?poll=$1&$2=$3"; rewrite "^__PATH__/([a-zA-Z0-9-]+)/vote/([a-zA-Z0-9]{16})$" "__PATH__/studs.php?poll=$1&vote=$2"; @@ -13,7 +15,7 @@ location __PATH__/ { rewrite "^__PATH__/([a-zA-Z0-9-]{24})/admin/vote/([a-zA-Z0-9]{16})$" "__PATH__/adminstuds.php?poll=$1&vote=$2"; rewrite "^__PATH__/([a-zA-Z0-9-]{24})/admin/action/([a-zA-Z_-]+)(/(.+))?$" "__PATH__/adminstuds.php?poll=$1&$2=$4"; - index index.php; + index index.html index.htm index.php; try_files $uri $uri/ __PATH__/index.php; diff --git a/manifest.toml b/manifest.toml index d23aa4b..5d630ae 100644 --- a/manifest.toml +++ b/manifest.toml @@ -31,9 +31,9 @@ ram.runtime = "50M" [install.domain] type = "domain" - #[install.path] - #type = "path" - #default = "/date" + [install.path] + type = "path" + default = "/date" [install.init_main_permission] type = "group"