From 4e5479cf31f66d25c26c039e3ae251d631765915 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20Pavl=C3=AD=C4=8Dek?=
Date: Tue, 24 Mar 2026 10:13:48 +0100
Subject: [PATCH] update cdn
---
cdn/README.md | 19 +++++++++++
cdn/index.html | 34 +++++++++++---------
cdn/static/gopher_profilovka_1.png | Bin 0 -> 277364 bytes
cdn/static/gopher_profilovka_2.png | Bin 0 -> 270401 bytes
cdn/zerops-service-import.yaml | 15 +++++++++
cdn/zerops-service-import.yml | 11 -------
cdn/zerops.yaml | 50 +++++++++++++++++++++++++++++
cdn/zerops.yml | 49 ----------------------------
8 files changed, 103 insertions(+), 75 deletions(-)
create mode 100644 cdn/README.md
create mode 100644 cdn/static/gopher_profilovka_1.png
create mode 100644 cdn/static/gopher_profilovka_2.png
create mode 100644 cdn/zerops-service-import.yaml
delete mode 100644 cdn/zerops-service-import.yml
create mode 100644 cdn/zerops.yaml
delete mode 100644 cdn/zerops.yml
diff --git a/cdn/README.md b/cdn/README.md
new file mode 100644
index 0000000..9e91f45
--- /dev/null
+++ b/cdn/README.md
@@ -0,0 +1,19 @@
+- `mc alias set ...`
+- `mc cp ~/pictures/memes_a_dalsi/sap500.png ranpu-test/44gyu-test1/xxx`
+- create `nginx` service
+- update secret envs for env replace
+```
+# prg1
+DOMAIN=nginx.zerops.matejpavlicek.cz
+STORAGE_HOST=storage-prg1.zerops.io
+STORAGE_BUCKET=4gh42-bucket1
+STORAGE_OBJECT=gopher_profilovka.png
+
+# ranpu
+DOMAIN=g99f14mbh7c3n9u5gdsi4d5kp90.ranpu.dev-zerops.cloud
+STORAGE_HOST=storage-ranpu.zerops.io
+STORAGE_BUCKET=44gyu-test1
+STORAGE_OBJECT=xxx
+```
+- push to `nginx` service
+- enable domain for it
diff --git a/cdn/index.html b/cdn/index.html
index 2b04838..1ff9200 100644
--- a/cdn/index.html
+++ b/cdn/index.html
@@ -3,30 +3,34 @@
CDN TEST
-TEST
+STATIC
- direct static
+ direct:
- cdn static
-
+ cdn:
+
- direct s3
-
-
-
- cdn s3
-
-
-
- fetch static
+ fetch cdn:
+
+
+STORAGE
+
+ direct:
+
+
+
+ cdn:
+
+
+
-