Skip to content

Commit b2d022e

Browse files
authored
Fix Photoprism: Add defaults.yml for CLI Tool (#2261)
1 parent a5a1431 commit b2d022e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

install/photoprism-install.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,35 @@ PHOTOPRISM_PUBLIC='false'
6262
PHOTOPRISM_DEBUG='false'
6363
EOF
6464
ln -sf /opt/photoprism/bin/photoprism /usr/local/bin/photoprism
65+
66+
mkdir -p /etc/photoprism/
67+
cat <<EOF >/etc/photoprism/defaults.yml
68+
ConfigPath: "~/.config/photoprism"
69+
StoragePath: "/opt/photoprism/storage"
70+
OriginalsPath: "/opt/photoprism/photos/originals"
71+
ImportPath: "/media"
72+
AdminUser: "admin"
73+
AdminPassword: "changeme"
74+
AuthMode: "password"
75+
DatabaseDriver: "sqlite"
76+
HttpHost: "0.0.0.0"
77+
HttpPort: 2342
78+
HttpCompression: "gzip"
79+
DisableTLS: false
80+
DefaultTLS: true
81+
Experimental: false
82+
DisableWebDAV: false
83+
DisableSettings: false
84+
DisableTensorFlow: false
85+
DisableFaces: false
86+
DisableClassification: false
87+
DisableVectors: false
88+
DisableRaw: false
89+
RawPresets: false
90+
JpegQuality: 85
91+
DetectNSFW: false
92+
UploadNSFW: true
93+
EOF
6594
msg_ok "Installed PhotoPrism"
6695

6796
msg_info "Creating Service"

0 commit comments

Comments
 (0)