Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx update #6

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading