fix: media asset on local proxy server

This commit is contained in:
Daniel Lautzenheiser
2023-01-10 16:00:07 -05:00
parent 0678b3ead8
commit 81930a7010
27 changed files with 141 additions and 19 deletions

View File

@ -0,0 +1,3 @@
authors:
- name: George
description: A person I know

View File

@ -0,0 +1,9 @@
{
"front_limit": 5,
"site_title": "Test",
"posts": {
"front_limit": 4,
"author": "Bob",
"thumb": "/backends/proxy/assets/upload/kanefreeman_2.jpg"
}
}

View File

@ -0,0 +1,5 @@
---
title: A Question
posts:
---
Here's the body!

View File

@ -0,0 +1,11 @@
---
title: Something something something...
draft: false
date: 2022-11-01 06:30
image: /backends/proxy/assets/posts/ori_3587884_d966kldqzc6mvdeq67hyk16rnbe3gb1k8eeoy31s_shark-icon.jpg
---
# Welcome
Here is your body!
And some more information!

View File

@ -0,0 +1,13 @@
---
title: Test
draft: false
date: 2022-11-01 14:28
image: /backends/proxy/assets/posts/kittens.jpg
---
Test2
<br>
![moby-dick.jpg](/assets/upload/moby-dick.jpg)
![moby-dick.jpg](/assets/upload/moby-dick.jpg)
![kanefreeman_2.jpg](/assets/upload/kanefreeman_2.jpg)

View File

@ -0,0 +1,7 @@
---
title: Test3
draft: false
date: 2022-11-02 08:43
image: /backends/proxy/assets/upload/kanefreeman_2.jpg
---
test25555

View File

@ -0,0 +1,57 @@
---
post: Something something something...
title: Test
boolean: false
map: '{"type":"Point","coordinates":[-86.9531232,40.4469471]}'
text: test
number: 5
markdown: test
datetime: 2022-11-09T12:43:36.323-05:00
color: "#923a3a"
colorEditable: "#833a3a"
image: /backends/proxy/assets/upload/moby-dick.jpg
file: /backends/proxy/assets/upload/kanefreeman_widescreen.png
select: a
select_multiple:
- a
- b
select_numeric: 1
object:
boolean: true
datetime: 2022-11-09T12:43:36.356-05:00
post: Test
string: test
text: test
number: 3
markdown: Ttest
image: /backends/proxy/assets/upload/moby-dick.jpg
file: /backends/proxy/assets/upload/static-cms-logo.png
select: a
list:
- object:
list:
hidden: hidden
boolean: false
datetime: 2022-11-09T12:44:36.654-05:00
string: test
text: test
number: 5
markdown: test
image: /backends/proxy/assets/upload/static-cms-logo.png
file: /backends/proxy/assets/upload/kanefreeman_widescreen.png
select: b
boolean: false
datetime: 2022-11-09T12:44:36.643-05:00
string: test
text: test
number: 5
markdown: test
image: /backends/proxy/assets/upload/kanefreeman_2.jpg
file: /backends/proxy/assets/upload/static-cms-logo.png
select: a
typed_list:
- type: type_1_object
boolean: false
string: test
text: test
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -5,18 +5,18 @@ backend:
local_backend: true
media_folder: assets/upload
public_folder: /assets/upload
media_folder: /packages/core/dev-test/backends/proxy/assets/upload
public_folder: /backends/proxy/assets/upload
collections:
- name: posts
label: Posts
label_singular: Post
media_folder: /assets/posts
public_folder: /assets/posts
media_folder: /packages/core/dev-test/backends/proxy/assets/posts
public_folder: /backends/proxy/assets/posts
description: >
The description is a great place for tone setting, high level information,
and editing guidelines that are specific to a collection.
folder: _posts
folder: packages/core/dev-test/backends/proxy/_posts
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
summary: '{{title}} -- {{year}}/{{month}}/{{day}}'
sortable_fields:
@ -66,7 +66,7 @@ collections:
hint: Main content goes here.
- name: faq
label: FAQ
folder: _faqs
folder: packages/core/dev-test/backends/proxy/_faqs
create: true
fields:
- label: Question
@ -98,7 +98,7 @@ collections:
files:
- name: general
label: Site Settings
file: _data/settings.json
file: packages/core/dev-test/backends/proxy/_data/settings.json
description: General Site Settings
fields:
- label: Number of posts on frontpage
@ -127,7 +127,7 @@ collections:
required: false
- name: authors
label: Authors
file: _data/authors.yml
file: packages/core/dev-test/backends/proxy/_data/authors.yml
description: Author descriptions
fields:
- name: authors
@ -144,7 +144,7 @@ collections:
widget: text
- name: kitchenSink
label: Kitchen Sink
folder: _sink
folder: packages/core/dev-test/backends/proxy/_sink
create: true
fields:
- label: Related Post