Skip to content

Commit

Permalink
Merge pull request #6 from lapig-ufg/develop
Browse files Browse the repository at this point in the history
nginx update
  • Loading branch information
James-jamames authored Oct 19, 2023
2 parents 89fe907 + 9cbc48c commit 8b2088b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docker/development/deploy/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ http {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
}

client_max_body_size 100M;
}
}
4 changes: 3 additions & 1 deletion docker/homologation/deploy/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ http {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
}

client_max_body_size 100M;
}
}
4 changes: 3 additions & 1 deletion docker/production/deploy/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ http {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
}

client_max_body_size 100M;
}
}
5 changes: 5 additions & 0 deletions server/app/Http/Controllers/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ public function store(Request $request)
], Response::HTTP_UNPROCESSABLE_ENTITY);
}
}

public function download()
{
return false;
}
}
3 changes: 2 additions & 1 deletion server/app/Models/Highlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class Highlight extends Model
'title',
'description',
'image',
'url',
'file_en',
'file_pt'
];

public static function getTranslate(string $lang)
Expand Down
1 change: 0 additions & 1 deletion server/app/Widgets/StatusJobsDimmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Widgets;

use Arrilot\Widgets\AbstractWidget;
use Mockery\Undefined;

class StatusJobsDimmer extends AbstractWidget
{
Expand Down
2 changes: 1 addition & 1 deletion server/config/voyager.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
// The allowed mimetypes to be uploaded through the media-manager.
// 'allowed_mimetypes' => '*', //All types can be uploaded
'allowed_mimetypes' => [
'image/jpeg',
//'image/jpeg',
'image/png',
'image/gif',
'image/bmp',
Expand Down
2 changes: 2 additions & 0 deletions server/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

Route::post('/api/form/upload', [FormController::class, 'store']);

Route::get('/api/form/downlaod', [FormController::class, 'download']);

Route::get('/api/news/{lang}', function (string $lang) {
return News::getTranslate($lang);
});
Expand Down

0 comments on commit 8b2088b

Please sign in to comment.