48 lines
1.2 KiB
TOML
48 lines
1.2 KiB
TOML
[storage]
|
|
data_dir = "./data/data"
|
|
websites_dir = "./data/websites"
|
|
cache_dir = "./data/cache"
|
|
build_dir = "./data/build"
|
|
|
|
[server]
|
|
listen = "0.0.0.0:3000"
|
|
# openssl rand -base64 32
|
|
cookie_secret_key = "mnmr/1bpZ1C8llHC3f35zemOzXvGE6s1Iah2a4BBhaw="
|
|
token_secret_key = "C3IA3zb40XWy0uiT0t/7GmfrgBgkVzUW8u6fC/vSlGY="
|
|
session_duration = "1day"
|
|
allowed_origins = [
|
|
"http://localhost:8080"
|
|
]
|
|
base_url = "http://localhost:3000"
|
|
frontend_url = "http://localhost:8080"
|
|
|
|
[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
|
|
"""
|
|
websites_url = "http://{website_name}.dev.lutaines.eu:8000/"
|
|
build_timeout = "3min"
|
|
|
|
[mailer]
|
|
# smtp | smtps | smtp+starttls
|
|
protocol = "stdout"
|
|
host = ""
|
|
#port =
|
|
username = ""
|
|
password = ""
|
|
from = "Scribouilli Dev <scribouilli@localhost>"
|