fixes to support composer / packagist

This commit is contained in:
Joey Kimsey
2024-08-08 01:48:28 -04:00
parent c95d837060
commit 9a2ade1857
68 changed files with 369 additions and 8612 deletions

View File

@ -9,20 +9,28 @@ server {
sendfile off;
client_max_body_size 100m;
location /images/ {
if (!-e $request_filename){
rewrite ^/images/(.*)$ /index.php?error=image404&url=$1 last;
}
location /js/ {
access_log off;
log_not_found off;
try_files $uri /index.php?error=js404&file=$uri;
}
location /css/ {
access_log off;
log_not_found off;
try_files $uri /index.php?error=css404&file=$uri;
}
location /images/ {
try_files $uri /index.php?error=image404&url=$uri;
}
location /uploads/ {
if (!-e $request_filename){
rewrite ^/uploads/(.*)$ /index.php?error=upload404&url=$1 last;
}
access_log off;
log_not_found off;
try_files $uri /index.php?error=upload404&url=$uri;
}
location /errors/ {
try_files $uri /index.php?error=$uri;
}
location ~* \.(?:js|css|png|jpg|gif|ico)$ {
@ -60,7 +68,6 @@ server {
}
location / {
rewrite ^/errors/(.*)$ /index.php?error=$1 last;
rewrite ^(.+)$ /index.php?url=$1 last;
rewrite ^/(.+)$ /index.php?url=$1&$args last;
}
}