From d964a35c8fb61ce62a839d687a17b6780fe1b295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 15 Oct 2020 10:18:56 +0200 Subject: [PATCH 1/2] NGINX setting (#2) * Update nginx.conf --- conf/nginx.conf | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1a25cdf..0e41766 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -15,10 +15,10 @@ location __PATH__/ { #try_files $uri $uri/ /bludit//bludit/index.php?$args; - #location __PATH__/bl-content/databases/ { deny all; } - #location __PATH__/bl-content/workspaces/ { deny all; } - #location __PATH__/bl-content/pages/ { deny all; } - #location __PATH__/bl-kernel/*.php { deny all; } + location __PATH__/bl-content/databases/ { deny all; } + location __PATH__/bl-content/workspaces/ { deny all; } + location __PATH__/bl-content/pages/ { deny all; } + location __PATH__/bl-kernel/*.php { deny all; } try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { @@ -31,6 +31,11 @@ location __PATH__/ { fastcgi_param SCRIPT_FILENAME $request_filename; } + location ~ \.(jpg|jpeg|gif|png|css|js|ico|svg|eot|ttf|woff|woff2|otf)$ { + access_log off; + expires 30d; + } + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } From ae13a3029bf615cc94bf8882d7d8bc6258f4af31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 18 Oct 2020 18:17:21 +0200 Subject: [PATCH 2/2] Testing (#4) * Fix nginx.conf --- conf/nginx.conf | 4 ++-- issue_template.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 issue_template.md diff --git a/conf/nginx.conf b/conf/nginx.conf index 0e41766..0db689a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,7 +11,7 @@ location __PATH__/ { index index.php; - if (!-e $request_filename) { rewrite ^ /bludit/index.php last; } + if (!-e $request_filename) { rewrite ^ __PATH__/index.php last; } #try_files $uri $uri/ /bludit//bludit/index.php?$args; @@ -20,7 +20,7 @@ location __PATH__/ { location __PATH__/bl-content/pages/ { deny all; } location __PATH__/bl-kernel/*.php { deny all; } - try_files $uri $uri/ index.php; + #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/issue_template.md b/issue_template.md new file mode 100644 index 0000000..36ef360 --- /dev/null +++ b/issue_template.md @@ -0,0 +1,55 @@ +--- +name: Bug report +about: When creating a bug report, please use the following template to provide all the relevant information and help debugging efficiently. + +--- + +**How to post a meaningful bug report** +1. *Read this whole template first.* +2. *Make sure you are on the right place:* + - *If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!* + - *Otherwise, the issue may be due to the app itself. Refer to its documentation or repository for help.* + - *In doubt, ask here and we will figure it out together.* +3. *Delete these italic comments as you write over them below, and remove this guide.* +--- + +### Describe the bug + +*A clear and concise description of what the bug is.* + +### Context + +- Hardware: *VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / ...* +- YunoHost version: x.x.x +- I have access to my server: *Through SSH | through the webadmin | direct access via keyboard / screen | ...* +- Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?: *no / yes* + - If yes, please explain: +- Using, or trying to install package version/branch: +- If upgrading, current package version: *can be found in the admin, or with `yunohost app info $app_id`* + +### Steps to reproduce + +- *If you performed a command from the CLI, the command itself is enough. For example:* + ```sh + sudo yunohost app install bludit + ``` +- *If you used the webadmin, please perform the equivalent command from the CLI first.* +- *If the error occurs in your browser, explain what you did:* + 1. *Go to '...'* + 2. *Click on '...'* + 3. *Scroll down to '...'* + 4. *See error* + +### Expected behavior + +*A clear and concise description of what you expected to happen. You can remove this section if the command above is enough to understand your intent.* + +### Logs + +*When an operation fails, YunoHost provides a simple way to share the logs.* +- *In the webadmin, the error message contains a link to the relevant log page. On that page, you will be able to 'Share with Yunopaste'. If you missed it, the logs of previous operations are also available under Tools > Logs.* +- *In command line, the command to share the logs is displayed at the end of the operation and looks like `yunohost log display [log name] --share`. If you missed it, you can find the log ID of a previous operation using `yunohost log list`.* + +*After sharing the log, please copypaste directly the link provided by YunoHost (to help readability, no need to copypaste the entire content of the log here, just the link is enough...)* + +*If applicable and useful, add screenshots to help explain your problem.*