From a69418c01c960a97047db8753c77ec53686ac4ec Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Sun, 30 Jul 2023 09:14:00 +0200
Subject: Deploy grocy to mieshu
---
.../mieshu/personal-services/grocy/configmap.yaml | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 data.d/k3s-master/manifests.d/mieshu/personal-services/grocy/configmap.yaml
(limited to 'data.d/k3s-master/manifests.d/mieshu/personal-services/grocy/configmap.yaml')
diff --git a/data.d/k3s-master/manifests.d/mieshu/personal-services/grocy/configmap.yaml b/data.d/k3s-master/manifests.d/mieshu/personal-services/grocy/configmap.yaml
new file mode 100644
index 0000000..b78a822
--- /dev/null
+++ b/data.d/k3s-master/manifests.d/mieshu/personal-services/grocy/configmap.yaml
@@ -0,0 +1,38 @@
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: grocy
+ namespace: personal-services
+ labels:
+ app.kubernetes.io/created-by: tyil
+ app.kubernetes.io/managed-by: manual
+ app.kubernetes.io/name: grocy
+ app.kubernetes.io/part-of: personal-services
+data:
+ # A custom common.conf is required because the name of the backend service is
+ # not configurable through conventional means. Instead, I supply my own
+ # version with the correct backend name and overwrite the one supplied by the
+ # grocy docker container itself.
+ common.conf: |
+ charset utf-8;
+
+ location / {
+ try_files $uri /index.php$is_args$query_string;
+ }
+
+ location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
+ expires 365d;
+ }
+
+ location ~ \.php$ {
+ fastcgi_pass grocy-backend:80;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include fastcgi_params;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+...
--
cgit v1.1