chore: gitignore config.toml, add config.toml.example
The dev config.toml contains a password hash and should not be committed. Add a config.toml.example template instead and document the copy step.
This commit is contained in:
@@ -13,6 +13,9 @@
|
|||||||
# Local development sandbox (posts, generated config)
|
# Local development sandbox (posts, generated config)
|
||||||
/.volumen/
|
/.volumen/
|
||||||
|
|
||||||
|
# Local dev config (contains password hash)
|
||||||
|
/config.toml
|
||||||
|
|
||||||
# Uploaded media in the dev content directory
|
# Uploaded media in the dev content directory
|
||||||
/posts/media/
|
/posts/media/
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Local development configuration for `just dev`.
|
# Local development configuration for `just dev`.
|
||||||
# Not shipped with the gem; safe to edit. Keep real admin hashes out of Git.
|
# Copy to config.toml and adjust. Keep real admin hashes out of Git.
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
@@ -16,8 +16,7 @@ language = "cs"
|
|||||||
author = "Petr Balvín"
|
author = "Petr Balvín"
|
||||||
|
|
||||||
[admin]
|
[admin]
|
||||||
# Dev credentials: password is "admin". Replace before any real use
|
# Generate a hash with: bundle exec exe/volumen hash-password
|
||||||
# (generate with `volumen hash-password`).
|
password_hash = ""
|
||||||
password_hash = "scrypt$16384$8$1$I7XEC8EpyfaptaPxmBQSUg==$gK7TRZAJnYmOSfKJ7xg+cOaYeBV4r5jlqcoL5+jNlSs="
|
|
||||||
session_key = ""
|
session_key = ""
|
||||||
session_ttl = 86400
|
session_ttl = 86400
|
||||||
Reference in New Issue
Block a user