Use group_data inventory

This commit is contained in:
Benoit S 2021-09-26 21:25:03 +09:00
parent b4a20ea6e9
commit 14d127fa2c
5 changed files with 63 additions and 26 deletions

View file

@ -1,34 +1,39 @@
# Undocker source # Undocker
undocker_url='https://git.sr.ht/~motiejus/undocker/refs/download/v1.0.2/undocker-linux-amd64-v1.0.2' undocker_url='https://git.sr.ht/~motiejus/undocker/refs/download/v1.0.2/undocker-linux-amd64-v1.0.2'
undocker_dst='/opt/photoprism'
undocker_cache='/var/cache/undocker'
# Used for the system # Used for the system
unix_user='photoprism'
# From Dockerfile unix_group='photoprism'
unix_home='/home/photoprism'
unix_shell='/bin/false'
systemd_env='/etc/photoprism.env'
# From docker-compose # From docker-compose
photoprism_admin_password='insecure' # File size limit for originals in MB (increase for high-res video) photoprism_admin_password='insecure' # File size limit for originals in MB (increase for high-res video)
photoprism_originals_limit=5000 # File size limit for originals in MB (increase for high-res video) photoprism_originals_limit=5000 # File size limit for originals in MB (increase for high-res video)
photoprism_http_compression="GZIP" # Improves transfer speed and bandwidth utilization (none or gzip) photoprism_http_compression='GZIP' # Improves transfer speed and bandwidth utilization (none or gzip)
photoprism_debug="false" # Run in debug mode (shows additional log messages) photoprism_debug='false' # Run in debug mode (shows additional log messages)
photoprism_public="false" # No authentication required (disables password protection) photoprism_public='false' # No authentication required (disables password protection)
photoprism_readonly="false" # Don't modify originals directory (reduced functionality) photoprism_readonly='false' # Don't modify originals directory (reduced functionality)
photoprism_experimental="false" # Enables experimental features photoprism_experimental='false' # Enables experimental features
photoprism_disable_webdav="false" # Disables built-in WebDAV server photoprism_disable_webdav='false' # Disables built-in WebDAV server
photoprism_disable_settings="false" # Disables Settings in Web UI photoprism_disable_settings='false' # Disables Settings in Web UI
photoprism_disable_tensorflow="false" # Disables all features depending on TensorFlow photoprism_disable_tensorflow='false' # Disables all features depending on TensorFlow
photoprism_disable_faces="false" # Disables facial recognition photoprism_disable_faces='false' # Disables facial recognition
photoprism_disable_classification="false" # Disables image classification photoprism_disable_classification='false' # Disables image classification
photoprism_darktable_presets="false" # Enables Darktable presets and disables concurrent RAW conversion photoprism_darktable_presets='false' # Enables Darktable presets and disables concurrent RAW conversion
photoprism_detect_nsfw="false" # Flag photos as private that MAY be offensive (requires TensorFlow) photoprism_detect_nsfw='false' # Flag photos as private that MAY be offensive (requires TensorFlow)
photoprism_upload_nsfw="true" # Allow uploads that MAY be offensive photoprism_upload_nsfw='true' # Allow uploads that MAY be offensive
photoprism_database_driver="mysql" # Use MariaDB (or MySQL) instead of SQLite for improved performance photoprism_database_driver='mysql' # Use MariaDB (or MySQL) instead of SQLite for improved performance
photoprism_database_server="127.0.0.1:3306" # MariaDB database server (hostname=port) photoprism_database_server='127.0.0.1:3306' # MariaDB database server (hostname=port)
photoprism_database_name="photoprism" # MariaDB database schema name photoprism_database_name='photoprism' # MariaDB database schema name
photoprism_database_user="photoprism" # MariaDB database user name photoprism_database_user='photoprism' # MariaDB database user name
photoprism_database_password='insecure' photoprism_database_password='insecure'
photoprism_site_url="http://localhost:2342/" # Public PhotoPrism URL photoprism_site_url='http://localhost:2342/' # Public PhotoPrism URL
photoprism_site_title="PhotoPrism" photoprism_site_title='PhotoPrism'
photoprism_site_caption="Browse Your Life" photoprism_site_caption='Browse Your Life'
photoprism_site_description="" photoprism_site_description=''
photoprism_site_author="" photoprism_site_author=''
home="/photoprism" photoprism_home='/photoprism'

1
group_data/dev.py Normal file
View file

@ -0,0 +1 @@
photoprism_debug='true' # Run in debug mode (shows additional log messages)

29
group_data/production.py Normal file
View file

@ -0,0 +1,29 @@
# Mandatory, edit me!
photoprism_admin_password='insecure' # File size limit for originals in MB (increase for high-res video)
photoprism_database_password='insecure' # MariaDB database password
# Optional
photoprism_originals_limit=5000 # File size limit for originals in MB (increase for high-res video)
photoprism_http_compression='GZIP' # Improves transfer speed and bandwidth utilization (none or gzip)
photoprism_debug='false' # Run in debug mode (shows additional log messages)
photoprism_public='false' # No authentication required (disables password protection)
photoprism_readonly='false' # Don't modify originals directory (reduced functionality)
photoprism_experimental='false' # Enables experimental features
photoprism_disable_webdav='false' # Disables built-in WebDAV server
photoprism_disable_settings='false' # Disables Settings in Web UI
photoprism_disable_tensorflow='false' # Disables all features depending on TensorFlow
photoprism_disable_faces='false' # Disables facial recognition
photoprism_disable_classification='false' # Disables image classification
photoprism_darktable_presets='false' # Enables Darktable presets and disables concurrent RAW conversion
photoprism_detect_nsfw='false' # Flag photos as private that MAY be offensive (requires TensorFlow)
photoprism_upload_nsfw='true' # Allow uploads that MAY be offensive
photoprism_database_driver='mysql' # Use MariaDB (or MySQL) instead of SQLite for improved performance
photoprism_database_server='127.0.0.1:3306' # MariaDB database server (hostname=port)
photoprism_database_name='photoprism' # MariaDB database schema name
photoprism_database_user='photoprism' # MariaDB database user name
photoprism_site_url='http://localhost:2342/' # Public PhotoPrism URL
photoprism_site_title='PhotoPrism'
photoprism_site_caption='Browse Your Life'
photoprism_site_description=''
photoprism_site_author=''
photoprism_home='/photoprism'

1
inventories/dev.py Normal file
View file

@ -0,0 +1 @@
dev_servers = ['@ssh/debian11.home.arpa']

View file

@ -0,0 +1 @@
production_servers = ['@local']