This commit is contained in:
Kekskurse 2021-01-17 03:39:33 +01:00
parent b799ee6c74
commit 0d558b2ab0
2 changed files with 7 additions and 1 deletions

View file

@ -40,7 +40,7 @@ class PublicController extends BaseController
public function returnImageFile($tenant_url, $gallery_url, $image_id, Request $request) { public function returnImageFile($tenant_url, $gallery_url, $image_id, Request $request) {
$sizeName = $request->input("size", "medium"); $sizeName = $request->input("size", "medium");
if(!array_key_exists($sizeName, $this->size)) { if(!array_key_exists($sizeName, self::$size)) {
abort(400, "Size not exists"); abort(400, "Size not exists");
} }
$size = (int)$this->size[$sizeName]; $size = (int)$this->size[$sizeName];

View file

@ -170,3 +170,9 @@
state: restarted state: restarted
daemon_reload: no daemon_reload: no
name: nginx name: nginx
- name: Creates a cron file under /etc/cron.d
ansible.builtin.cron:
name: laravelcron
user: www-data
job: "php /var/www/kuvia/artisan schedule:run"