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') -