Compare commits
4 Commits
add-postgr
...
auto_confi
Author | SHA1 | Date | |
---|---|---|---|
5ee0547315 | |||
801e0a0762 | |||
01f610d02f | |||
12eea19cab |
10
compose.yml
10
compose.yml
@ -1,7 +1,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: nginx:1.20.0
|
image: nginx:1.21.6
|
||||||
configs:
|
configs:
|
||||||
- source: nginx_conf
|
- source: nginx_conf
|
||||||
target: /etc/nginx/nginx.conf
|
target: /etc/nginx/nginx.conf
|
||||||
@ -33,7 +33,7 @@ services:
|
|||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: nextcloud:23.0.3-fpm
|
image: nextcloud:24.0.0-fpm
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
configs:
|
configs:
|
||||||
@ -69,13 +69,13 @@ services:
|
|||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
order: start-first
|
order: start-first
|
||||||
labels:
|
labels:
|
||||||
- "coop-cloud.${STACK_NAME}.version=2.0.0+23.0.3-fpm"
|
- "coop-cloud.${STACK_NAME}.version=2.1.0+24.0.0-fpm"
|
||||||
- "backupbot.backup=true"
|
- "backupbot.backup=true"
|
||||||
- "backupbot.backup.path=/var/www/html/config/,/var/www/html/data/,/var/www/html/custom_apps/"
|
- "backupbot.backup.path=/var/www/html/config/,/var/www/html/data/,/var/www/html/custom_apps/"
|
||||||
|
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
image: nextcloud:23.0.3-fpm
|
image: nextcloud:24.0.0-fpm
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud:/var/www/html/
|
- nextcloud:/var/www/html/
|
||||||
- nextapps:/var/www/html/custom_apps:cached
|
- nextapps:/var/www/html/custom_apps:cached
|
||||||
@ -87,7 +87,7 @@ services:
|
|||||||
entrypoint: /cron.sh
|
entrypoint: /cron.sh
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
image: redis:6.2.5-alpine
|
image: redis:7.0.0-alpine
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
volumes:
|
volumes:
|
||||||
|
55
configure_nextcloud.sh
Executable file
55
configure_nextcloud.sh
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
app_name=$1
|
||||||
|
domain=$2
|
||||||
|
secret=$3
|
||||||
|
|
||||||
|
sub_occ(){
|
||||||
|
abra app run --user www-data $app_name app /var/www/html/occ "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install apps
|
||||||
|
sub_occ app:install calendar || true
|
||||||
|
sub_occ app:install sociallogin || true
|
||||||
|
sub_occ app:install onlyoffice || true
|
||||||
|
|
||||||
|
# Disable Dashboard
|
||||||
|
sub_occ app:disable dashboard || true
|
||||||
|
|
||||||
|
# Configure SSO
|
||||||
|
|
||||||
|
sub_occ config:app:set sociallogin custom_providers --value="
|
||||||
|
{
|
||||||
|
\"custom_oidc\": [
|
||||||
|
{
|
||||||
|
\"name\": \"authentik\",
|
||||||
|
\"title\": \"Login\",
|
||||||
|
\"authorizeUrl\": \"https://$domain/application/o/authorize/\",
|
||||||
|
\"tokenUrl\": \"https://$domain/application/o/token/\",
|
||||||
|
\"displayNameClaim\": \"preferred_username\",
|
||||||
|
\"userInfoUrl\": \"https://$domain/application/o/userinfo/\",
|
||||||
|
\"logoutUrl\": \"https://$domain/application/o/nextcloud/end-session/\",
|
||||||
|
\"clientId\": \"nextcloud\",
|
||||||
|
\"clientSecret\": \"$secret\",
|
||||||
|
\"scope\": \"openid profile email nextcloud\",
|
||||||
|
\"groupsClaim\": \"nextcloud_groups\",
|
||||||
|
\"style\": \"openid\",
|
||||||
|
\"defaultGroup\": \"\",
|
||||||
|
\"groupMapping\": {
|
||||||
|
\"admin\": \"admin\"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}"
|
||||||
|
|
||||||
|
sub_occ config:app:set sociallogin update_profile_on_login --value 1
|
||||||
|
sub_occ config:app:set sociallogin auto_create_groups --value 1
|
||||||
|
sub_occ config:app:set sociallogin hide_default_login --value 1
|
||||||
|
|
||||||
|
sub_occ config:system:set allow_user_to_change_display_name --value=false
|
||||||
|
sub_occ config:system:set lost_password_link --value=disabled
|
||||||
|
sub_occ config:system:set social_login_auto_redirect --value=true
|
||||||
|
|
||||||
|
abra app run --user www-data $app_name app cat config/config.php
|
@ -1,4 +1,4 @@
|
|||||||
2.0.0 introduces a minor nextcloud update to 23.0.3 and moves the database service to a seperate override.yml file to support different database types (mariadb / postgres). This might break your installation. Please add the following snippet to your config .env to ensure the right db is used:
|
2.0.0 introduces a minor nextcloud update to 23.0.4 and moves the database service to a seperate override.yml file to support different database types (mariadb / postgres). This might break your installation. Please add the following snippet to your config .env to ensure the right db is used:
|
||||||
|
|
||||||
```
|
```
|
||||||
COMPOSE_FILE="compose.yml"
|
COMPOSE_FILE="compose.yml"
|
||||||
|
Reference in New Issue
Block a user