--- 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; } ...