From 52252cc7991ff6af75ace766363c28cb3e345692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 1 Jan 2023 14:55:34 +0100 Subject: [PATCH] Fix --- conf/.env | 6 ++++++ conf/nginx.conf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/conf/.env b/conf/.env index 334a5a4..f3e42f9 100644 --- a/conf/.env +++ b/conf/.env @@ -16,3 +16,9 @@ REDIS_PASSWORD= # Leave commented for no password # JSON cache, used on Helpers\CacheEngines\JSONCache # API_CACHE_JSON=/tmp/proxitok_api # Path for JSON API Cache, leave commented for ./cache/api + +# Proxy Config +# PROXY_HOST=http://EXAMPLE_IP # Host to be used as proxy, make sure to type a valid protocol. Available: http:// | https:// | socks4:// | socks5:// +# PROXY_PORT=8080 +# PROXY_USERNAME=username +# PROXY_PASSWORD=password diff --git a/conf/nginx.conf b/conf/nginx.conf index 19726a3..b39e9c7 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,7 +9,7 @@ location __PATH__/ { # 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; + try_files $uri $uri/ /index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;