From b15784fa0d76afe735501a983311651ca7e3ca56 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Sun, 17 Jan 2021 05:12:42 +0100 Subject: [PATCH] Stuff --- app/Http/Controllers/PublicController.php | 2 +- resources/ansible/hosts.yml | 3 ++ resources/ansible/playbook.yml | 16 +++++++++++ resources/views/dashboard/index.blade.php | 2 +- resources/views/gallery/images.blade.php | 2 +- resources/views/layout/template.blade.php | 2 +- .../themes/gallery/default/list.blade.php | 28 ------------------- .../gallery/gallery-detail/list.blade.php | 28 +++++++++++++++++++ 8 files changed, 51 insertions(+), 32 deletions(-) delete mode 100644 resources/views/themes/gallery/default/list.blade.php create mode 100644 resources/views/themes/gallery/gallery-detail/list.blade.php diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index b3d7c02..d1591e4 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -35,7 +35,7 @@ class PublicController extends BaseController $tenant = Tenant::query()->where("url", "=", $tenant)->firstOrFail(); $gallery = Gallery::getByTenantAndUrl($tenant->id, $gallery); $images = Image::query()->where("gallery", "=", $gallery->id)->get(); - return view("themes.gallery.gallery.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]); + return view("themes.gallery.gallery-detail.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]); } public function returnImageFile($tenant_url, $gallery_url, $image_id, Request $request) { diff --git a/resources/ansible/hosts.yml b/resources/ansible/hosts.yml index 62f92f5..9f567b8 100644 --- a/resources/ansible/hosts.yml +++ b/resources/ansible/hosts.yml @@ -4,6 +4,9 @@ all: hosts: www1.fra.kuvia.cloud: domain: www1.fra.kuvia.cloud www.kuvia.cloud kuvia.cloud + www2.fra.kuvia.cloud: + domain: www2.fra.kuvia.cloud + mysql: hosts: www1.fra.kuvia.cloud: diff --git a/resources/ansible/playbook.yml b/resources/ansible/playbook.yml index 50c4ea6..d7c2d62 100644 --- a/resources/ansible/playbook.yml +++ b/resources/ansible/playbook.yml @@ -176,3 +176,19 @@ name: laravelcron user: www-data job: "php /var/www/kuvia/artisan schedule:run" + + - name: Set upload_max_filesize for php + ansible.builtin.replace: + path: /etc/php/7.4/fpm/php.ini + regexp: '^upload_max_filesize\s*=.*$' + replace: 'upload_max_filesize = 100M' + - name: Set upload_max_filesize for php + ansible.builtin.replace: + path: /etc/php/7.4/fpm/php.ini + regexp: '^post_max_size\s*=.*$' + replace: 'post_max_size = 100M' + - name: Restart php + ansible.builtin.systemd: + state: restarted + daemon_reload: no + name: php7.4-fpm diff --git a/resources/views/dashboard/index.blade.php b/resources/views/dashboard/index.blade.php index 68c0706..869aa72 100644 --- a/resources/views/dashboard/index.blade.php +++ b/resources/views/dashboard/index.blade.php @@ -2,7 +2,7 @@ @section('content') -
+

Dashboard