summaryrefslogtreecommitdiffci
path: root/config
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go23
-rw-r--r--config/config.local.yaml22
-rw-r--r--config/config.prod.yaml22
-rw-r--r--config/config.stage.yaml22
4 files changed, 0 insertions, 89 deletions
diff --git a/config/config.go b/config/config.go
index 536a333..ebe0367 100644
--- a/config/config.go
+++ b/config/config.go
@@ -20,9 +20,6 @@ type Config struct {
Mail MailConfig `json:"Mail" yaml:"mail" validate:"required"`
CanonicalEndpoint string `json:"CanonicalEndpoint" yaml:"canonicalEndpoint" validate:"required"`
Meta MetaConfig `json:"Meta" yaml:"meta"`
- PhotoStorage PhotoStorageConfig `json:"PhotoStorage" yaml:"photoStorage"`
- StaticStorage PhotoTypeConfig `json:"StaticStorage" yaml:"staticStorage"`
- AllowOrigins []string `json:"AllowOrigins" yaml:"allowOrigins"`
}
type BlogPagesConfig struct {
@@ -161,26 +158,6 @@ type MetaConfig struct {
GoogleSiteVerification string `json:"GoogleSiteVerification" yaml:"googleSiteVerification"`
}
-type PhotoStorageConfig struct {
- Full PhotoTypeConfig `json:"Full" yaml:"full" validate:"required"`
- Webp PhotoTypeConfig `json:"Webp" yaml:"webp"`
- Thumbnail1600p PhotoTypeConfig `json:"Thumbnail1600p" yaml:"thumbnail1600p"`
- Thumbnail1200p PhotoTypeConfig `json:"Thumbnail1200p" yaml:"thumbnail1200p"`
- Thumbnail800p PhotoTypeConfig `json:"Thumbnail800p" yaml:"thumbnail800p"`
- Thumbnail560p PhotoTypeConfig `json:"Thumbnail560p" yaml:"thumbnail560p"`
- Thumbnail320p PhotoTypeConfig `json:"Thumbnail320p" yaml:"thumbnail320p"`
- HomePageGifs HomePageGifsConfig `json:"HomePageGifs" yaml:"homePageGifs"`
-}
-
-type PhotoTypeConfig struct {
- BaseUrl string `json:"BaseUrl" yaml:"baseUrl" validate:"url,required"`
-}
-
-type HomePageGifsConfig struct {
- BaseUrl string `json:"BaseUrl" yaml:"baseUrl" validate:"url,required"`
- Indexes []string `json:"Indexes" yaml:"indexes"`
-}
-
func LoadConfig(path string, config *Config) error {
fileBytes, err := os.ReadFile(path)
if err != nil {
diff --git a/config/config.local.yaml b/config/config.local.yaml
index d312504..c02dc2d 100644
--- a/config/config.local.yaml
+++ b/config/config.local.yaml
@@ -46,25 +46,3 @@ mail:
trigger:
onNewPost: "* * * * *"
canonicalEndpoint: 'http://127.0.0.1:3000'
-photoStorage:
- full:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/full/%s
- webp:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp/%s.webp
- thumbnail1600p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-1600p/%s.webp
- thumbnail1200p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-1200p/%s.webp
- thumbnail800p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-800p/%s.webp
- thumbnail560p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-560p/%s.webp
- thumbnail320p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-320p/%s.webp
- homePageGifs:
- baseUrl: https://f003.backblazeb2.com/file/sayana-static/home-page-gifs/otter-%s.gif
- indexes: ['1', '2', '3']
-staticStorage:
- baseUrl: https://f003.backblazeb2.com/file/sayana-static
-allowOrigins:
- - https://f003.backblazeb2.com
diff --git a/config/config.prod.yaml b/config/config.prod.yaml
index 2c5a159..b40ba57 100644
--- a/config/config.prod.yaml
+++ b/config/config.prod.yaml
@@ -47,25 +47,3 @@ mail:
canonicalEndpoint: 'https://${FQDN}'
meta:
googleSiteVerification: '${GOOGLE_SITE_VERIFICATION}'
-photoStorage:
- full:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/full/%s
- webp:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp/%s.webp
- thumbnail1600p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-1600p/%s.webp
- thumbnail1200p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-1200p/%s.webp
- thumbnail800p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-800p/%s.webp
- thumbnail560p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-560p/%s.webp
- thumbnail320p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-320p/%s.webp
- homePageGifs:
- baseUrl: https://f003.backblazeb2.com/file/sayana-static/home-page-gifs/otter-%s.gif
- indexes: ['1', '2', '3']
-staticStorage:
- baseUrl: https://f003.backblazeb2.com/file/sayana-static
-allowOrigins:
- - https://f003.backblazeb2.com
diff --git a/config/config.stage.yaml b/config/config.stage.yaml
index 0889c19..efa94ae 100644
--- a/config/config.stage.yaml
+++ b/config/config.stage.yaml
@@ -45,25 +45,3 @@ mail:
trigger:
onNewPost: "0/3 * * * *"
canonicalEndpoint: 'https://${FQDN}'
-photoStorage:
- full:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/full/%s
- webp:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp/%s.webp
- thumbnail1600p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-1600p/%s.webp
- thumbnail1200p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-1200p/%s.webp
- thumbnail800p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-800p/%s.webp
- thumbnail560p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-560p/%s.webp
- thumbnail320p:
- baseUrl: https://f003.backblazeb2.com/file/sayana-photos/webp-320p/%s.webp
- homePageGifs:
- baseUrl: https://f003.backblazeb2.com/file/sayana-static/home-page-gifs/otter-%s.gif
- indexes: ['1', '2', '3']
-staticStorage:
- baseUrl: https://f003.backblazeb2.com/file/sayana-static
-allowOrigins:
- - https://f003.backblazeb2.com