File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,6 @@ http {
20
20
root /usr/share/nginx/html;
21
21
index index.html;
22
22
23
- # redirect to home
24
- location = / {
25
- return 301 /home;
26
- }
27
-
28
23
# never cache the service-worker
29
24
location ~* service-worker\.js$ {
30
25
expires -1d;
Original file line number Diff line number Diff line change @@ -76,21 +76,24 @@ server {
76
76
# all redirects are relative to the gateway
77
77
absolute_redirect off;
78
78
79
- location = /openmrs/spa {
80
- return 301 /openmrs/spa/;
81
- }
82
-
83
79
location /openmrs/spa/ {
84
80
proxy_pass http://frontend/;
85
- proxy_redirect http://$host/ /openmrs/spa/;
86
81
}
87
82
88
83
location /openmrs {
89
84
proxy_read_timeout 300s;
90
85
proxy_pass http://backend;
91
86
}
92
87
88
+ location = /openmrs/spa/ {
89
+ return 301 /openmrs/spa/home;
90
+ }
91
+
92
+ location = /openmrs/spa {
93
+ return 301 /openmrs/spa/home;
94
+ }
95
+
93
96
location = / {
94
- return 301 /openmrs/spa/;
97
+ return 301 /openmrs/spa/home ;
95
98
}
96
99
}
You can’t perform that action at this time.
0 commit comments