summaryrefslogtreecommitdiff
path: root/data.d/k3s-master/manifests.d/oolah/personal-services/grocy/configmap.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'data.d/k3s-master/manifests.d/oolah/personal-services/grocy/configmap.yaml')
-rw-r--r--data.d/k3s-master/manifests.d/oolah/personal-services/grocy/configmap.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/data.d/k3s-master/manifests.d/oolah/personal-services/grocy/configmap.yaml b/data.d/k3s-master/manifests.d/oolah/personal-services/grocy/configmap.yaml
new file mode 100644
index 0000000..b78a822
--- /dev/null
+++ b/data.d/k3s-master/manifests.d/oolah/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;
+ }
+...