50 lines
1.3 KiB
TOML
50 lines
1.3 KiB
TOML
[storage]
|
|
data_dir = "/var/lib/scribouilli/data"
|
|
websites_dir = "/var/lib/scribouilli/websites"
|
|
cache_dir = "/var/cache/scribouilli"
|
|
build_dir = "/var/run/scribouilli/build"
|
|
|
|
[server]
|
|
listen = "127.0.0.1:3000"
|
|
# openssl rand -base64 32
|
|
cookie_secret_key = "<change me>"
|
|
token_secret_key = "<change me>"
|
|
session_duration = "1day"
|
|
allowed_origins = [
|
|
"https://example.org"
|
|
]
|
|
# end with a trailing slash if subdirectory
|
|
base_url = "https://example.net"
|
|
frontend_url = "https://example.org"
|
|
|
|
[websites]
|
|
template_urls = [
|
|
"https://github.com/Scribouilli/site-template.git"
|
|
]
|
|
template_clone_timeout = "2min"
|
|
build_image = "docker.io/library/ruby:3.2.2"
|
|
build_command = """
|
|
set -ex
|
|
GEMFILE_HASH=$(md5sum Gemfile | cut -d' ' -f1)
|
|
|
|
export BUNDLE_CACHE_PATH=/cache/$GEMFILE_HASH/cache
|
|
export BUNDLE_PATH=/cache/$GEMFILE_HASH/bundle
|
|
export JEKYLL_ENV=production
|
|
|
|
mkdir -p $BUNDLE_CACHE_PATH $BUNDLE_PATH
|
|
|
|
bundle install
|
|
bundle exec jekyll build -s /source -d /out
|
|
"""
|
|
build_timeout = "3min"
|
|
websites_url = "https://{website_name}.example.net"
|
|
|
|
[mailer]
|
|
# smtp | smtps | smtp+starttls | stdout
|
|
protocol = "smtp"
|
|
host = "mx.example.net"
|
|
# Optional, default to default port for chosen protocol
|
|
#port = 465
|
|
username = "scribouilli@example.net"
|
|
password = "ScribouilliPassword"
|
|
from = "Scribouilli <scribouilli@example.net>"
|