Paste number 356859: gs config example

Paste number 356859: gs config example
Pasted by: n
When:4 years, 11 months ago
Share:Tweet this! | http://paste.lisp.org/+7NCR
Channel:None
Paste contents:
Raw Source | XML | Display As
(use-modules (gnu)
             (hidamari-blue gnu-social)
             (hidamari-blue php-fpm))
(use-service-modules networking ssh web mcron databases)
(use-package-modules web admin databases certs)


(define gs-config
  (gnu-social-config
   (site-domain "localhost")
;; TODO FIXME SECURITY don't put plaintext passwords here
   (db-password <db-user-password-as-string-here>)
   (admin-password <gs-admin-password-as-string-here>)
   (language "fr")
   (logfile "/var/log/gnu-social.log")))

(operating-system
 (host-name "tomato")
 (timezone "Europe/Berlin")
 (locale "en_US.utf8")

 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (target "/dev/sda")))
 (file-systems (cons (file-system
                      (device "/dev/sda3")
                      (title 'device)
                      (mount-point "/")
                      (type "ext4"))
                     %base-file-systems))

 ;; This is where user accounts are specified.  The "root"
 ;; account is implicit, and is initially created with the
 ;; empty password.
 (users %base-user-accounts)

 ;; Globally-installed packages.
 (packages (cons* nss-certs tcpdump %base-packages))

 (services (cons* (dhcp-client-service)
                  (service openssh-service-type
                           (openssh-configuration
                            (password-authentication? #f)))

                  (mysql-service)
                  (service php-fpm-service-type
                           (php-fpm-configuration
                            (workers-logfile "/var/log/fpm-php.www.log")))
                  (service gnu-social-service-type
                           gs-config)

                  (service nginx-service-type
                           (nginx-configuration
                            (server-blocks
                             (list
                              (gnu-social-nginx-block
                               nginx gnu-social gs-config)))))

                  (service mcron-service-type)

                  %base-services)))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.