r/minio: Add additional configuration options

If the `minio_address` variable is specified, it will be passed with the
`--address` argument to `minio server`.  This allows controlling the
socket the server binds to and listens on.

The `minio_browser_redirect_url` can be specified to populate the
similarly-named environment variable, which configures how MinIO serves
the web UI.

The `minio_domain` variable sets the `MINIO_DOMAIN` environment
variable, which enables DNS names (subdomains) for buckets, i.e.
`{bucket_name}.{MINIO_DOMAIN}`.
frigate-exporter
Dustin 2024-08-31 18:47:32 -05:00
parent 2e37fce4f6
commit 623f652e0d
3 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,9 @@
minio_version: latest
minio_container_image: quay.io/minio/minio
minio_storage_path: /var/lib/minio
minio_console_address: '[::]:9090'
minio_port: 9000
minio_address: '[::]:{{ minio_port }}'
minio_console_port: 9090
minio_console_address: '[::]:{{ minio_console_port }}'
minio_root_user: root
minio_root_password: changeme

View File

@ -5,7 +5,7 @@ After=network-online.target
[Container]
Image={{ minio_container_image }}:{{ minio_version }}
Exec=server /data --certs-dir /certs
Exec=server {% if minio_address|d %}--address {{ minio_address }} {% endif %}/data --certs-dir /certs
User=224
Group=224
EnvironmentFile=/etc/sysconfig/minio

View File

@ -2,5 +2,11 @@ MINIO_ROOT_USER={{ minio_root_user }}
MINIO_ROOT_PASSWORD={{ minio_root_password }}
MINIO_CONSOLE_ADDRESS={{ minio_console_address }}
{% if minio_browser_redirect_url|d %}
MINIO_BROWSER_REDIRECT_URL={{ minio_browser_redirect_url }}
{% endif %}
{% if minio_domain|d %}
MINIO_DOMAIN={{ minio_domain }}
{% endif %}
MINIO_PROMETHEUS_AUTH_TYPE=public