File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
templates/drydock/k8s/ingress Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 5
5
}
6
6
rewrite @favicon_matcher /theming/asset/images/favicon.ico
7
7
8
+ {{ patch("caddyfile-mfe-by-path") }}
9
+
8
10
# Limit profile image upload size
9
11
request_body /api/profile_images/*/*/upload {
10
12
max_size 1MB
Original file line number Diff line number Diff line change 40
40
name : {% if DRYDOCK_BYPASS_CADDY -%}mfe{% else -%}caddy{% endif %}
41
41
port :
42
42
number : {% if DRYDOCK_BYPASS_CADDY -%}8002{% else -%}80{% endif %}
43
+ {% for app_name, app in iter_mfes() %}
44
+ - pathType : Prefix
45
+ path : " /{{app_name}}"
46
+ backend :
47
+ service :
48
+ name : {% if DRYDOCK_BYPASS_CADDY -%}mfe{% else -%}caddy{% endif %}
49
+ port :
50
+ number : {% if DRYDOCK_BYPASS_CADDY -%}8002{% else -%}80{% endif %}
51
+ {%- endfor %}
43
52
- pathType : Prefix
44
53
path : " /"
45
54
backend :
59
68
name : {% if DRYDOCK_BYPASS_CADDY -%}mfe{% else -%}caddy{% endif %}
60
69
port :
61
70
number : {% if DRYDOCK_BYPASS_CADDY -%}8002{% else -%}80{% endif %}
71
+ {% for app_name, app in iter_mfes() %}
72
+ - pathType : Prefix
73
+ path : " /{{app_name}}"
74
+ backend :
75
+ service :
76
+ name : {% if DRYDOCK_BYPASS_CADDY -%}mfe{% else -%}caddy{% endif %}
77
+ port :
78
+ number : {% if DRYDOCK_BYPASS_CADDY -%}8002{% else -%}80{% endif %}
79
+ {%- endfor %}
62
80
- pathType : Prefix
63
81
path : " /"
64
82
backend :
You can’t perform that action at this time.
0 commit comments