Skip to content

Commit

Permalink
Update nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMellerin committed Dec 24, 2023
1 parent a2d777d commit ed3d213
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
19 changes: 6 additions & 13 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@ location __PATH__/ {
client_body_timeout 60m;
proxy_read_timeout 60m;
fastcgi_read_timeout 60m;

# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M;
client_max_body_size 50M;

try_files $uri @__NAME__;
location ~ ^__PATH__/index\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;

location ~ ^__PATH__/index\.php(/|$) {
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_intercept_errors on;
}

Expand All @@ -36,8 +34,3 @@ location __PATH__/ {
location @__NAME__ {
rewrite ^ __PATH__/index.php/$is_args$args;
}

#for-subdir location __PATH__ {
#for-subdir return 301 __PATH__/;
#for-subdir }

2 changes: 1 addition & 1 deletion scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"

chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
chmod -R 750 "$install_dir"

#=================================================
# SYSTEM CONFIGURATION
Expand Down

0 comments on commit ed3d213

Please sign in to comment.