summaryrefslogtreecommitdiff
path: root/config
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go1
-rw-r--r--config/config.local.yaml4
-rw-r--r--config/config.prod.yaml3
-rw-r--r--config/config.stage.yaml3
4 files changed, 8 insertions, 3 deletions
diff --git a/config/config.go b/config/config.go
index 1393dd8..fd8c480 100644
--- a/config/config.go
+++ b/config/config.go
@@ -16,6 +16,7 @@ type Config struct {
AvailableLanguages []AvailableLanguageConfig `json:"AvailableLanguages" yaml:"availableLanguages" validate:"required"`
Auth AuthConfig `json:"Auth" yaml:"auth" validate:"required"`
Mail MailConfig `json:"Mail" yaml:"mail" validate:"required"`
+ CanonicalEndpoint string `json:"CanonicalEndpoint" yaml:"canonicalEndpoint" validate:"required"`
}
type BlogPagesConfig struct {
diff --git a/config/config.local.yaml b/config/config.local.yaml
index d40e8e9..c02dc2d 100644
--- a/config/config.local.yaml
+++ b/config/config.local.yaml
@@ -32,7 +32,8 @@ auth:
db:
type: sqlite3
config:
- dsn: 'file:/tmp/auth.db?cache=shared&mode=rwc'
+ # dsn: 'file:/tmp/auth.db?cache=shared&mode=rwc&_journal_mode=WAL'
+ dsn: 'file:/tmp/auth.db?cache=private&mode=rwc&_locking_mode=EXCLUSIVE&_mutex=no&_auto_vacuum=2&_journal_mode=WAL'
salt: '123'
mail:
clientHost: '127.0.0.1:3000'
@@ -44,3 +45,4 @@ mail:
salt: '${MAIL_SALT}'
trigger:
onNewPost: "* * * * *"
+canonicalEndpoint: 'http://127.0.0.1:3000'
diff --git a/config/config.prod.yaml b/config/config.prod.yaml
index 7a9e5ae..4de853c 100644
--- a/config/config.prod.yaml
+++ b/config/config.prod.yaml
@@ -32,7 +32,7 @@ auth:
db:
type: sqlite3
config:
- dsn: 'file:/data/auth.db?cache=private&mode=rwc&_locking_mode=EXCLUSIVE&_mutex=no&_auto_vacuum=2'
+ dsn: 'file:/data/auth.db?cache=private&mode=rwc&_locking_mode=EXCLUSIVE&_mutex=no&_auto_vacuum=2&_journal_mode=WAL'
salt: '${AUTH_SALT}'
mail:
clientHost: '${FQDN}'
@@ -44,3 +44,4 @@ mail:
salt: '${MAIL_SALT}'
trigger:
onNewPost: "0/5 * * * *"
+canonicalEndpoint: 'https://${FQDN}'
diff --git a/config/config.stage.yaml b/config/config.stage.yaml
index 8a5fde1..efa94ae 100644
--- a/config/config.stage.yaml
+++ b/config/config.stage.yaml
@@ -32,7 +32,7 @@ auth:
db:
type: sqlite3
config:
- dsn: 'file:/data/auth.db?cache=private&mode=rwc&_locking_mode=EXCLUSIVE&_mutex=no&_auto_vacuum=2'
+ dsn: 'file:/data/auth.db?cache=private&mode=rwc&_locking_mode=EXCLUSIVE&_mutex=no&_auto_vacuum=2&_journal_mode=WAL'
salt: '${AUTH_SALT}'
mail:
clientHost: '${FQDN}'
@@ -44,3 +44,4 @@ mail:
salt: '${MAIL_SALT}'
trigger:
onNewPost: "0/3 * * * *"
+canonicalEndpoint: 'https://${FQDN}'