Skip to content

Commit 479f23b

Browse files
committed
feat: change default minio config to support pre-signed urls
Signed-off-by: Carl Schwan <[email protected]>
1 parent fade46f commit 479f23b

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

data/ldap/10_people_professor.ldif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ objectClass: inetOrgPerson
33
objectClass: organizationalPerson
44
objectClass: person
55
objectClass: top
6-
cn: Hubert J. Farnsworth
6+
cn: Hubert J. Farnsworth ([email protected])
77
sn: Farnsworth
88
description: Human
99
displayName: Professor Farnsworth

docker-compose.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ services:
4343
- stable32${DOMAIN_SUFFIX}
4444
- mail${DOMAIN_SUFFIX}
4545
- sso${DOMAIN_SUFFIX}
46+
- minio${DOMAIN_SUFFIX}
4647
- imap${DOMAIN_SUFFIX}
4748
- collabora${DOMAIN_SUFFIX}
4849
- codedev${DOMAIN_SUFFIX}
@@ -679,6 +680,17 @@ services:
679680
volumes:
680681
- mysql:/var/lib/mysql
681682

683+
database-vitess:
684+
image: vitess/base:v0.19.10
685+
ports:
686+
- "${IP_BIND:-127.0.0.1}:3306:3306"
687+
- "${IP_BIND:-127.0.0.1}:9500:8000"
688+
command: >
689+
go run /vt/src/vitess.io/vitess/examples/demo/demo.go
690+
extra_hosts:
691+
- host.docker.internal:host-gateway
692+
# sh -c "ls /vt/src/vitess.io/vitess && cd /vt/src/vitess.io/vitess/examples/local && ./101_initial_cluster.sh"
693+
682694
database-mariadb-primary:
683695
image: docker.io/bitnami/mariadb:10.6
684696
ports:
@@ -791,7 +803,9 @@ services:
791803
- "${IP_BIND:-127.0.0.1}:${PORTBASE:-800}8:80"
792804

793805
saml:
794-
image: unicon/simplesamlphp
806+
build:
807+
context: ./docker/simplesamlphp
808+
dockerfile: Dockerfile
795809
volumes:
796810
- ./docker/configs/var-simplesamlphp/config:/var/simplesamlphp/config
797811
- ./docker/configs/var-simplesamlphp/cert:/var/simplesamlphp/cert
@@ -826,8 +840,8 @@ services:
826840
USER3: "user2;user2"
827841
# -s "<name;/path>[;browse;readonly;guest;users;admins;writelist;comment]"
828842
SHARE: "public;/smbmount;yes;no;yes;all;admin;admin"
829-
SHARE2: "user1;/smb/user1;yes;no;no;user1"
830-
SHARE3: "user2;/smb/user2;yes;no;no;user2"
843+
SHARE2: "user1;/smb/user1;yes;no;no;user1;user1"
844+
SHARE3: "user2;/smb/user2;yes;no;no;user2;user1"
831845
volumes:
832846
- smb:/smbmount
833847
- smbhomes:/smb

docker/configs/storage.config.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
'bucket' => 'nc-' . $hostname,
2121
'key' => 'nextcloud',
2222
'secret' => 'nextcloud',
23-
'hostname' => 'minio',
24-
'port' => '9000',
23+
'hostname' => 'minio.local',
24+
'port' => '80',
25+
'proxy' => 'minio:9000',
2526
'use_ssl' => false,
2627
'use_path_style' => true,
28+
'use_presigned_url' => true,
2729
'autocreate' => true,
2830
'verify_bucket_exists' => true,
2931
),
@@ -42,11 +44,13 @@
4244
'bucket' => 'nc-' . $hostname,
4345
'key' => 'nextcloud',
4446
'secret' => 'nextcloud',
45-
'hostname' => 'minio',
46-
'port' => '9000',
47+
'hostname' => 'minio.local',
48+
'port' => '80',
49+
'proxy' => 'minio:9000',
50+
'use_presigned_url' => true,
4751
'use_ssl' => false,
4852
'use_path_style' => true,
4953
),
5054
),
5155
];
52-
}
56+
}

scripts/php-mod-config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ fi
1717
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
1818

1919
restart() {
20+
echo "restart" $SCRIPT_DIR $1
2021
(cd "$SCRIPT_DIR/.." && docker_compose exec "$1" pkill -USR1 apache2)
22+
echo "restart" $SCRIPT_DIR $1 done
2123
}
2224

2325
docker_exec() {
@@ -48,11 +50,14 @@ then
4850
echo "Setting $2 to $3"
4951
value="${3//\//\\\/}"
5052
docker_exec "$1" sed -i 's/^'"$2"'\s*=\s*.*/'"$2"'='"$value"'/g' /usr/local/etc/php/conf.d/xdebug.ini
53+
echo "Setting $2 to $3 done"
5154
else
5255
echo "No value provided"
5356
exit 1
5457
fi
58+
echo "restart"
5559
restart "$1"
60+
echo "restart done"
5661
docker_exec "$1" cat /usr/local/etc/php/conf.d/xdebug.ini
5762
exit 0
5863
fi

0 commit comments

Comments
 (0)