This commit is contained in:
James Turland
2024-10-03 16:35:36 +01:00
parent 083c27f613
commit f76d8e3727
5 changed files with 312 additions and 0 deletions

46
Ente/config/museum.yaml Normal file
View File

@@ -0,0 +1,46 @@
# HTTP connection parameters
http:
# If true, bind to 443 and use TLS.
# By default, this is false, and museum will bind to 8080 without TLS.
# use-tls: true
# Specify the base endpoints for various apps
apps:
# Default is https://albums.ente.io
#
# If you're running a self hosted instance and wish to serve public links,
# set this to the URL where your albums web app is running.
public-albums: https://ente.jimsgarage.co.uk
# SMTP configuration (optional)
#
# Configure credentials here for sending mails from museum (e.g. OTP emails).
#
# The smtp credentials will be used if the host is specified. Otherwise it will
# try to use the transmail credentials. Ideally, one of smtp or transmail should
# be configured for a production instance.
#
# username and password are optional (e.g. if you're using a local relay server
# and don't need authentication).
#smtp:
# host:
# port:
# username:
# password:
# # The email address from which to send the email. Set this to an email
# # address whose credentials you're providing.
# email:
s3:
are_local_buckets: true
b2-eu-cen:
key: test
secret: testtest
endpoint: https://minio.jimsgarage.co.uk
region: eu-central-2
bucket: b2-eu-cen
# Add this once you have done the CLI part
#internal:
# admins:
# - 1580559962386438

View File

@@ -0,0 +1,28 @@
db:
host: postgres
port: 5432
name: ente_db
user: pguser
password: pgpass
s3:
are_local_buckets: true
b2-eu-cen:
key: test
secret: testtest
endpoint: https://minio.jimsgarage.co.uk
region: eu-central-2
bucket: b2-eu-cen
wasabi-eu-central-2-v3:
key: test
secret: testtest
endpoint: localhost:3200
region: eu-central-2
bucket: wasabi-eu-central-2-v3
compliance: false
scw-eu-fr-v3:
key: test
secret: testtest
endpoint: localhost:3200
region: eu-central-2
bucket: scw-eu-fr-v3

View File

@@ -0,0 +1,16 @@
#!/bin/sh
# Script used to prepare the minio instance that runs as part of the development
# Docker compose cluster.
while ! mc config host add h0 http://minio:3200 test testtest
do
echo "waiting for minio..."
sleep 0.5
done
cd /data
mc mb -p b2-eu-cen
mc mb -p wasabi-eu-central-2-v3
mc mb -p scw-eu-fr-v3