Add database specific config settings

This commit is contained in:
TakeV 2023-08-13 17:25:42 -07:00
parent de381a5744
commit 290b8b4e82
Signed by: TakeV
GPG Key ID: A64F41345C7400AF
1 changed files with 30 additions and 4 deletions

View File

@ -20,11 +20,10 @@
pixelfed-configuration))
(define-maybe string)
(define-maybe integer)
(define-configuration pixelfed-configuration
(url
(string "localhost")
"Url for the pixelfed instance")
;; Guix config settings
(pixelfed
(package pixelfed)
"The pixelfed package to use")
@ -39,7 +38,34 @@
"Pixelfed work directory")
(postgres?
(boolean #t)
"Set up postgres DB")
"If true, extends the postgresql service running in the same system")
;; App variables
(app-name
(string "Pixelfed")
"Name which appears onn headerbar and other locations")
(app-url
(string "localhost")
"Url for the pixelfed instance")
;; Database variables
(db-database
(string "pixelfed")
"The name of the database to connect to")
(db-host
(maybe-string)
"URL to the database host")
(db-port
(maybe-integer)
"Databse host port")
(db-username
(maybe-string)
"The database user to connect as")
(db-password
(maybe-string)
"Password for the database user")
;; Nginx/https configuration
(nginx?
(boolean #t)
"Set up reverse proxy via nginx")