mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-21 06:49:13 +02:00
Merge pull request #584 from wesleygas/wesleygas-photoprism-externaldb
Allow for external database configuration
This commit is contained in:
@@ -52,7 +52,7 @@ Options can be configured through two ways :
|
|||||||
ssl: true/false
|
ssl: true/false
|
||||||
certfile: fullchain.pem #ssl certificate, must be located in /ssl
|
certfile: fullchain.pem #ssl certificate, must be located in /ssl
|
||||||
keyfile: privkey.pem #sslkeyfile, must be located in /ssl
|
keyfile: privkey.pem #sslkeyfile, must be located in /ssl
|
||||||
DB_TYPE: "list(sqlite|mariadb_addon)" # Mariadb is automatically configured is the addon is installed, sqlite does not need configuration
|
DB_TYPE: "list(sqlite|mariadb_addon|external)" # Mariadb is automatically configured is the addon is installed, sqlite does not need configuration
|
||||||
localdisks: sda1 #put the hardware name of your drive to mount separated by commas, or its label. Ex: sda1, sdb1, MYNAS...
|
localdisks: sda1 #put the hardware name of your drive to mount separated by commas, or its label. Ex: sda1, sdb1, MYNAS...
|
||||||
networkdisks: "//SERVER/SHARE" # optional, list of smb servers to mount, separated by commas
|
networkdisks: "//SERVER/SHARE" # optional, list of smb servers to mount, separated by commas
|
||||||
cifsusername: "username" # optional, smb username, same for all smb shares
|
cifsusername: "username" # optional, smb username, same for all smb shares
|
||||||
@@ -72,6 +72,18 @@ Configuration is done by customizing the config.yaml that can be found in /confi
|
|||||||
|
|
||||||
The complete list of options can be seen here : https://github.com/photoprism/photoprism/blob/develop/docker-compose.yml
|
The complete list of options can be seen here : https://github.com/photoprism/photoprism/blob/develop/docker-compose.yml
|
||||||
|
|
||||||
|
- External db setting (@wesleygas)
|
||||||
|
|
||||||
|
Allow for the use of an external database. This can be done in photoprism by correctly setting the following options on the addons_config/photoprism/config.yaml file:
|
||||||
|
|
||||||
|
```
|
||||||
|
PHOTOPRISM_DATABASE_DRIVER: "mysql"
|
||||||
|
PHOTOPRISM_DATABASE_SERVER: "IP:PORT"
|
||||||
|
PHOTOPRISM_DATABASE_NAME: "photoprism"
|
||||||
|
PHOTOPRISM_DATABASE_USER: "USERNAME"
|
||||||
|
PHOTOPRISM_DATABASE_PASSWORD: "PASSWORD
|
||||||
|
```
|
||||||
|
|
||||||
## Illustration
|
## Illustration
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"BACKUP_PATH": "str",
|
"BACKUP_PATH": "str",
|
||||||
"CONFIG_LOCATION": "str",
|
"CONFIG_LOCATION": "str",
|
||||||
"DB_TYPE": "list(sqlite|mariadb_addon)",
|
"DB_TYPE": "list(sqlite|mariadb_addon|external)",
|
||||||
"IMPORT_PATH": "str",
|
"IMPORT_PATH": "str",
|
||||||
"ORIGINALS_PATH": "str",
|
"ORIGINALS_PATH": "str",
|
||||||
"STORAGE_PATH": "str",
|
"STORAGE_PATH": "str",
|
||||||
@@ -99,5 +99,5 @@
|
|||||||
],
|
],
|
||||||
"slug": "photoprism",
|
"slug": "photoprism",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons-test",
|
"url": "https://github.com/alexbelgium/hassio-addons-test",
|
||||||
"version": "20220121-2"
|
"version": "20220121-3"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user