From 099c53b9499a4ffe100716a80346c48a47d14ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 4 Jan 2023 19:30:14 +0100 Subject: [PATCH] fix --- conf/nginx.conf | 29 +++++++---------------------- conf/systemd.service | 2 +- manifest.json | 4 ++-- 3 files changed, 10 insertions(+), 25 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 6b738ce..b8a6b46 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,28 +1,13 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location ^~ __PATH__/ { - # Path to source - alias __FINALPATH__/; - -### Example PHP configuration (remove it if not used) - index index.php; - - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; - - try_files $uri $uri/ index.php; - location ~ [^/]\.php(/|$) { - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; - - fastcgi_index index.php; - include fastcgi_params; - fastcgi_param REMOTE_USER $remote_user; - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param SCRIPT_FILENAME $request_filename; - } -### End of PHP configuration part + proxy_pass http://127.0.0.1:__PORT__/; + proxy_http_version 1.1; + proxy_set_header Connection "upgrade"; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header X-Forwarded-For $remote_addr; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; + more_clear_input_headers 'Accept-Encoding'; } diff --git a/conf/systemd.service b/conf/systemd.service index d0badc8..2b708ad 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Calckey: A greatly enhanced fork of Misskey with better UI/UX, security, features, and more! +Description=Calckey: fork of Misskey After=network.target [Service] diff --git a/manifest.json b/manifest.json index 99e63b9..c26f6c9 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "id": "calckey", "packaging_format": 1, "description": { - "en": "A greatly enhanced fork of Misskey with better UI/UX, security, features, and more!", - "fr": "Un fork de Misskey grandement amélioré avec une meilleure interface utilisateur/UX, la sécurité, les fonctionnalités, et plus encore !" + "en": "Fork of Misskey with better UI/UX, security, features", + "fr": "Un fork de Misskey avec une meilleure interface utilisateur, la sécurité, les fonctionnalités" }, "version": "13.0.5~ynh1", "url": "https://i.calckey.cloud/",