Commit 6fa2fa4 1 parent 6ffaf15 commit 6fa2fa4 Copy full SHA for 6fa2fa4
File tree 4 files changed +39
-4
lines changed
helm_deploy/laa-access-civil-legal-aid/templates
4 files changed +39
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ def index():
20
20
return render_template ("index.html" )
21
21
22
22
23
+ @bp .route ("/status" , methods = ["GET" ])
24
+ def status ():
25
+ return "OK"
26
+
27
+
23
28
@bp .route ("/maintenance-mode" , methods = ["GET" ])
24
29
def maintenance_mode_page ():
25
30
if not current_app .config ["MAINTENANCE_MODE" ]:
@@ -86,5 +91,9 @@ def csrf_error(error):
86
91
@bp .before_request
87
92
def maintenance_mode_middleware ():
88
93
maintenance_url = url_for ("main.maintenance_mode_page" )
89
- if current_app .config ["MAINTENANCE_MODE" ] and request .path != maintenance_url :
94
+ exempt_urls = [
95
+ maintenance_url ,
96
+ url_for ("main.status" ),
97
+ ]
98
+ if current_app .config ["MAINTENANCE_MODE" ] and request .path not in exempt_urls :
90
99
return redirect (maintenance_url )
Original file line number Diff line number Diff line change 8
8
< div class ="govuk-grid-row ">
9
9
< div class ="govuk-grid-column-two-thirds ">
10
10
< h1 class ="govuk-heading-l "> This service is currently down for maintenance</ h1 >
11
- < p class ="govuk-body "> 'If you were part way through the service, you will have to start again when the service becomes available.</ p >
11
+ < p class ="govuk-body "> If you were part way through the service, you will have to start again when the service becomes available.</ p >
12
+
13
+ < p class ="govuk-body "> Contact the Civil Legal Advice Helpline if you need urgent information or advice.</ p >
14
+ < p class ="govuk-body "> Telephone:< br />
15
+ < strong class ="govuk-!-font-weight-bold "> 0345 345 4345</ strong >
16
+ </ p >
17
+
18
+ < p class ="govuk-body "> Textphone:< br />
19
+ < strong class ="govuk-!-font-weight-bold "> 0845 609 6677</ strong >
20
+ </ p >
21
+
22
+ < div class ="govuk-inset-text ">
23
+ < p class ="govuk-body ">
24
+ Calls will cost approximately 9p per minute from landline. Calls from mobiles may cost more.
25
+ </ p >
26
+ < p class ="govuk-body ">
27
+ If you are worried about the cost, you can request a call-back within 24 hours by either calling the helpline or texting ‘legal aid’ and your name to < strong class ="govuk-!-font-weight-bold "> 80010</ strong > .
28
+ </ p >
29
+ </ div >
30
+ < p class ="govuk-body "> Opening times:< br />
31
+ < strong class ="govuk-!-font-weight-bold ">
32
+ Monday to Friday: 9am to 5pm< br />
33
+ Saturday: 9am to 12.30pm
34
+ </ strong >
35
+ </ p >
36
+
12
37
</ div >
13
38
</ div >
14
39
{% endblock %}
Original file line number Diff line number Diff line change 44
44
protocol : TCP
45
45
livenessProbe :
46
46
httpGet :
47
- path : /
47
+ path : /status
48
48
port : http
49
49
readinessProbe :
50
50
httpGet :
51
- path : /
51
+ path : /status
52
52
port : http
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ metadata:
13
13
labels :
14
14
{{- include "laa-access-civil-legal-aid.labels" . | nindent 4 }}
15
15
annotations :
16
+ nginx.ingress.kubernetes.io/custom-http-errors : " 413,502,504"
16
17
{{- if .Values.ingress.cluster.name }}
17
18
external-dns.alpha.kubernetes.io/set-identifier : " {{ $fullName }}-{{ .Release.Namespace }}-{{- .Values.ingress.cluster.name -}}"
18
19
external-dns.alpha.kubernetes.io/aws-weight : " {{- .Values.ingress.cluster.weight -}}"
You can’t perform that action at this time.
0 commit comments