From 821a9f531b3d14e11bb4fc2ac70e6c519897dedc Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 13:24:38 +0200 Subject: [PATCH 01/10] chore: removed domain --- nextcloud/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 1a5a52b..c116943 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -27,7 +27,7 @@ services: - MYSQL_HOST=nc_db - REDIS_HOST=nc_redis - TRUSTED_PROXIES=172.16.0.0/12 - - OVERWRITEHOST=cloud.smail.koeln + - OVERWRITEHOST=cloud.example.com - OVERWRITEPROTOCOL=https - OVERWRITEWEBROOT=/ - PHP_UPLOAD_LIMIT=1G From e14601d67c0aaf770a53d9c447678f7eac19c4b6 Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 13:27:09 +0200 Subject: [PATCH 02/10] fix: removed password --- nextcloud/docker-compose.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index c116943..46c2c05 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -5,7 +5,6 @@ services: container_name: nc_db command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW environment: - - MYSQL_ROOT_PASSWORD=Subatomic-Lapping0-Untagged-Deceptive-Judge - MARIADB_AUTO_UPGRADE=1 - MARIADB_DISABLE_UPGRADE_BACKUP=1 env_file: From 8b3413bde7db13da4d77d24b4c65e784452003ed Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 13:49:51 +0200 Subject: [PATCH 03/10] chore: moved vars intro .env file for clarity --- nextcloud/docker-compose.yml | 5 ----- nextcloud/nextcloud.env | 13 ++++++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 46c2c05..6e6271f 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -25,11 +25,6 @@ services: environment: - MYSQL_HOST=nc_db - REDIS_HOST=nc_redis - - TRUSTED_PROXIES=172.16.0.0/12 - - OVERWRITEHOST=cloud.example.com - - OVERWRITEPROTOCOL=https - - OVERWRITEWEBROOT=/ - - PHP_UPLOAD_LIMIT=1G env_file: - nextcloud.env ports: diff --git a/nextcloud/nextcloud.env b/nextcloud/nextcloud.env index 1aebc54..f22fbaa 100644 --- a/nextcloud/nextcloud.env +++ b/nextcloud/nextcloud.env @@ -1,3 +1,14 @@ +# Database settings MYSQL_PASSWORD= MYSQL_DATABASE= -MYSQL_USER= \ No newline at end of file +MYSQL_USER= + +# reverse proxy settings +# if you're not a reverse proxy, you must uncomment the following lines +TRUSTED_PROXIES=172.16.0.0/12 +OVERWRITEHOST=cloud.example.com +OVERWRITEPROTOCOL=https +OVERWRITEWEBROOT=/ + +# PHP settings +PHP_UPLOAD_LIMIT=1G \ No newline at end of file From 6b8beb5518102b3fb419674a5ba81014a6b56d35 Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 13:51:39 +0200 Subject: [PATCH 04/10] feat: added example values --- nextcloud/mariadb.env | 2 +- nextcloud/nextcloud.env | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nextcloud/mariadb.env b/nextcloud/mariadb.env index 2b1b863..abcd135 100644 --- a/nextcloud/mariadb.env +++ b/nextcloud/mariadb.env @@ -1 +1 @@ -MYSQL_ROOT_PASSWORD= \ No newline at end of file +MYSQL_ROOT_PASSWORD=YOUR_RANDOM_PASSWORD \ No newline at end of file diff --git a/nextcloud/nextcloud.env b/nextcloud/nextcloud.env index f22fbaa..eef0fe3 100644 --- a/nextcloud/nextcloud.env +++ b/nextcloud/nextcloud.env @@ -1,7 +1,7 @@ -# Database settings -MYSQL_PASSWORD= -MYSQL_DATABASE= -MYSQL_USER= +# Nextcloud database settings +MYSQL_DATABASE=nextcloud +MYSQL_USER=nextcloud +MYSQL_PASSWORD=YOUR_RANDOM_PASSWORD # reverse proxy settings # if you're not a reverse proxy, you must uncomment the following lines From ca695e8c317449608616a003478ab27bf2c90e2e Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 13:53:57 +0200 Subject: [PATCH 05/10] feat: added hint --- nextcloud/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nextcloud/README.md b/nextcloud/README.md index 8feef39..2c96019 100644 --- a/nextcloud/README.md +++ b/nextcloud/README.md @@ -10,4 +10,7 @@ └── volumes ├── db └── nextcloud -``` \ No newline at end of file +``` + +## Configuration +Change the values in **mariadb.env** and **nextcloud.env** accordingly. \ No newline at end of file From 12f3a3912e63bdac0a3e090dec482a3d4fa0dab2 Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 11:56:22 +0000 Subject: [PATCH 06/10] nextcloud/nextcloud.env aktualisiert --- nextcloud/nextcloud.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextcloud/nextcloud.env b/nextcloud/nextcloud.env index eef0fe3..faf6b5b 100644 --- a/nextcloud/nextcloud.env +++ b/nextcloud/nextcloud.env @@ -3,8 +3,8 @@ MYSQL_DATABASE=nextcloud MYSQL_USER=nextcloud MYSQL_PASSWORD=YOUR_RANDOM_PASSWORD -# reverse proxy settings -# if you're not a reverse proxy, you must uncomment the following lines +# Reverse proxy settings +# If you're not using a reverse proxy, you must comment out the following lines TRUSTED_PROXIES=172.16.0.0/12 OVERWRITEHOST=cloud.example.com OVERWRITEPROTOCOL=https From 05861f15c8f5b93bcc8d3ea44b1d4651805bd4ac Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 13:58:33 +0200 Subject: [PATCH 07/10] feat: added table of contents and warning --- nextcloud/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nextcloud/README.md b/nextcloud/README.md index 2c96019..1fe6c0f 100644 --- a/nextcloud/README.md +++ b/nextcloud/README.md @@ -1,5 +1,9 @@ # Nextcloud Docker Compose Stack +- [Nextcloud Docker Compose Stack](#nextcloud-docker-compose-stack) + - [Directory structure](#directory-structure) + - [Configuration](#configuration) + ## Directory structure ``` /opt/docker/nextcloud From 8e6075df015eaaeabbffc32b9df91b8888ddcd75 Mon Sep 17 00:00:00 2001 From: sujiba Date: Thu, 23 May 2024 13:58:41 +0200 Subject: [PATCH 08/10] feat: added table of contents and warning --- nextcloud/nextcloud.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud/nextcloud.env b/nextcloud/nextcloud.env index faf6b5b..2c8dcdd 100644 --- a/nextcloud/nextcloud.env +++ b/nextcloud/nextcloud.env @@ -4,7 +4,7 @@ MYSQL_USER=nextcloud MYSQL_PASSWORD=YOUR_RANDOM_PASSWORD # Reverse proxy settings -# If you're not using a reverse proxy, you must comment out the following lines +# If you're not using a reverse proxy (not recommended), you must comment out the following lines TRUSTED_PROXIES=172.16.0.0/12 OVERWRITEHOST=cloud.example.com OVERWRITEPROTOCOL=https From fe35b5012445ba6b1fc8096c03648195ea646828 Mon Sep 17 00:00:00 2001 From: sujiba Date: Fri, 24 May 2024 00:03:39 +0200 Subject: [PATCH 09/10] feat: added smtp settings --- nextcloud/docker-compose.yml | 2 +- nextcloud/nextcloud.env | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 6e6271f..7e65edf 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -1,7 +1,7 @@ --- services: nc_db: - image: mariadb:10.5 + image: mariadb:10.11 container_name: nc_db command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW environment: diff --git a/nextcloud/nextcloud.env b/nextcloud/nextcloud.env index 2c8dcdd..8898d10 100644 --- a/nextcloud/nextcloud.env +++ b/nextcloud/nextcloud.env @@ -1,3 +1,5 @@ +# https://github.com/nextcloud/docker#base-version---apache + # Nextcloud database settings MYSQL_DATABASE=nextcloud MYSQL_USER=nextcloud @@ -11,4 +13,13 @@ OVERWRITEPROTOCOL=https OVERWRITEWEBROOT=/ # PHP settings -PHP_UPLOAD_LIMIT=1G \ No newline at end of file +PHP_UPLOAD_LIMIT=1G + +# SMTP settings +SMTP_HOST=smtp.example.com +SMTP_PORT=465 +SMTP_SECURE=ssl +SMTP_NAME=no-reply@example.com +SMTP_PASSWORD=YOUR_SECURE_PASSWORD +MAIL_FROM_ADDRESS=no-reply +MAIL_DOMAIN=example.com \ No newline at end of file From e514a0fb661c1bdf49937f68b55460ad243f0757 Mon Sep 17 00:00:00 2001 From: sujiba Date: Fri, 24 May 2024 01:03:36 +0200 Subject: [PATCH 10/10] feat: added forgejo settings --- forgejo/docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/forgejo/docker-compose.yml b/forgejo/docker-compose.yml index 1c18599..3920105 100644 --- a/forgejo/docker-compose.yml +++ b/forgejo/docker-compose.yml @@ -34,6 +34,10 @@ services: ' environment: FORGEJO__security__INSTALL_LOCK: "true" + FORGEJO__server__DISABLE_SSH: "true" + FORGEJO__service__DISABLE_REGISTRATION: "true" + FORGEJO__service__SHOW_REGISTRATION_BUTTON: "false" + FORGEJO__service__DEFAULT_KEEP_EMAIL_PRIVATE: "true" FORGEJO__log__LEVEL: "debug" FORGEJO__repository__ENABLE_PUSH_CREATE_USER: "true" FORGEJO__repository__DEFAULT_PUSH_CREATE_PRIVATE: "false" @@ -41,7 +45,7 @@ services: volumes: - ./volumes/forgejo-data:/data ports: - - "127.0.0.1:13000:3000" + - "127.0.0.1:3001:3000" runner-daemon: image: code.forgejo.org/forgejo/runner:3.3.0