blob: b78a8226ddebdee13882d9fa9585a64b4cedacd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}
...
|