Loading packaging/freebsd/blogi.default-config.yaml 0 → 100644 +42 −0 Changes for packaging/freebsd/blogi.default-config.yaml: 42 added lines, 0 removed lines. Original line number Diff line number Diff line BLOGI: TEMPLATE: "/usr/local/share/blogi/themes/default" LANGUAGE: "DE" STARTPAGE: "/blog/content/index" PLUGINDIR: - "/usr/local/lib/blogi/plugins" HTTP: URL: "http://localhost" DOMAIN: "localhost" PREFIX: "/blog" PORT: 8080 BIND: "0.0.0.0" MAXCON: 1024 DATABASE: DRIVER: "sqlite" CONNECTION: "/var/lib/blogi/blog.db" AUTHDB: - URL: "https://localhost:8443" CLIENTNAME: "blogiclient" CLIENTSECRET: "changeme" DOMAIN: "localhost" MEDIADB: URL: "https://localhost:8442" NGINXFILER: HOST: "localhost" PORT: 80 PREFIX: "/files/" SSL: False TIMEOUT: 10 com: "/tmp/blogi" COOKIE: DOMAIN: "localhost" SMTP: ADDR: "localhost" PORT: 587 USER: "" PASS: "" SENDER: "" CONTACT: RECEIVER: "" DOMAIN: NAME: "localhost" packaging/freebsd/blogi.rc 0 → 100755 +45 −0 Changes for packaging/freebsd/blogi.rc: 45 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/sh # # PROVIDE: blogi # REQUIRE: LOGIN NETWORKING SERVERS # KEYWORD: shutdown # # Add the following to /etc/rc.conf(5) to enable blogi: # # blogi_enable="YES" # blogi_config="/usr/local/etc/blogi/config.yaml" # optional, this is the default # # blogi is started as root: it opens /var/log/blogi/{access,error}.log # itself and then drops its effective uid/gid to the "blogi" user before # entering its event loop (see src/blogi.cpp). It also daemonizes and # writes its own pidfile, so this script does not wrap it with daemon(8). # . /etc/rc.subr name="blogi" desc="Blogi blog engine server" rcvar="blogi_enable" load_rc_config "$name" : ${blogi_enable:="NO"} : ${blogi_config:="/usr/local/etc/blogi/config.yaml"} command="/usr/local/bin/blogi" command_args="-c yaml:${blogi_config}" # blogi.cpp hardcodes this path when it daemonizes — it is not configurable, # so this must match exactly for status/stop to find the right process. pidfile="/var/run/${name}.pid" required_files="${blogi_config}" start_precmd="blogi_prestart" blogi_prestart() { install -d -o blogi -g blogi -m 0750 /var/log/blogi } run_rc_command "$1" Loading
packaging/freebsd/blogi.default-config.yaml 0 → 100644 +42 −0 Changes for packaging/freebsd/blogi.default-config.yaml: 42 added lines, 0 removed lines. Original line number Diff line number Diff line BLOGI: TEMPLATE: "/usr/local/share/blogi/themes/default" LANGUAGE: "DE" STARTPAGE: "/blog/content/index" PLUGINDIR: - "/usr/local/lib/blogi/plugins" HTTP: URL: "http://localhost" DOMAIN: "localhost" PREFIX: "/blog" PORT: 8080 BIND: "0.0.0.0" MAXCON: 1024 DATABASE: DRIVER: "sqlite" CONNECTION: "/var/lib/blogi/blog.db" AUTHDB: - URL: "https://localhost:8443" CLIENTNAME: "blogiclient" CLIENTSECRET: "changeme" DOMAIN: "localhost" MEDIADB: URL: "https://localhost:8442" NGINXFILER: HOST: "localhost" PORT: 80 PREFIX: "/files/" SSL: False TIMEOUT: 10 com: "/tmp/blogi" COOKIE: DOMAIN: "localhost" SMTP: ADDR: "localhost" PORT: 587 USER: "" PASS: "" SENDER: "" CONTACT: RECEIVER: "" DOMAIN: NAME: "localhost"
packaging/freebsd/blogi.rc 0 → 100755 +45 −0 Changes for packaging/freebsd/blogi.rc: 45 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/sh # # PROVIDE: blogi # REQUIRE: LOGIN NETWORKING SERVERS # KEYWORD: shutdown # # Add the following to /etc/rc.conf(5) to enable blogi: # # blogi_enable="YES" # blogi_config="/usr/local/etc/blogi/config.yaml" # optional, this is the default # # blogi is started as root: it opens /var/log/blogi/{access,error}.log # itself and then drops its effective uid/gid to the "blogi" user before # entering its event loop (see src/blogi.cpp). It also daemonizes and # writes its own pidfile, so this script does not wrap it with daemon(8). # . /etc/rc.subr name="blogi" desc="Blogi blog engine server" rcvar="blogi_enable" load_rc_config "$name" : ${blogi_enable:="NO"} : ${blogi_config:="/usr/local/etc/blogi/config.yaml"} command="/usr/local/bin/blogi" command_args="-c yaml:${blogi_config}" # blogi.cpp hardcodes this path when it daemonizes — it is not configurable, # so this must match exactly for status/stop to find the right process. pidfile="/var/run/${name}.pid" required_files="${blogi_config}" start_precmd="blogi_prestart" blogi_prestart() { install -d -o blogi -g blogi -m 0750 /var/log/blogi } run_rc_command "$1"