feat: add basic nextcloud role

nextcloud with optional collabora base setup
This commit is contained in:
Bert-Jan Fikse 2025-12-19 14:17:08 +01:00
parent 19986e1205
commit 6ab3505dc8
Signed by: bert-jan
GPG key ID: C1E0AB516AC16D1A
11 changed files with 404 additions and 0 deletions

View file

@ -0,0 +1,10 @@
-- Grant necessary permissions to the Nextcloud PostgreSQL user
-- CREATEROLE allows creating roles for Nextcloud apps
ALTER USER {{ nextcloud_postgres_user }} WITH CREATEROLE;
-- Pre-create the Nextcloud database to prevent automatic user creation
CREATE DATABASE {{ nextcloud_postgres_db }} OWNER {{ nextcloud_postgres_user }};
-- Grant CREATE permission on public schema in the new database
\c {{ nextcloud_postgres_db }}
GRANT CREATE ON SCHEMA public TO {{ nextcloud_postgres_user }};