Skip to content
This repository was archived by the owner on Feb 29, 2020. It is now read-only.

Commit 1720229

Browse files
committed
Merge branch 'topic/health_check' into develop
Conflicts: project.clj
2 parents 835c29d + b4de358 commit 1720229

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

default.conf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,27 @@ server {
5050
proxy_pass http://127.0.0.1:9876/status;
5151
}
5252

53+
location /healthy {
54+
if ($request_method = 'OPTIONS') {
55+
add_header 'Access-Control-Allow-Origin' '*';
56+
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
57+
add_header 'Access-Control-Max-Age' 1728000;
58+
add_header 'Content-Type' 'text/plain; charset=utf-8';
59+
add_header 'Content-Length' 0;
60+
return 204;
61+
}
62+
if ($request_method = 'GET') {
63+
add_header 'Access-Control-Allow-Origin' '*';
64+
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
65+
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
66+
add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
67+
}
68+
proxy_connect_timeout 600s;
69+
proxy_send_timeout 600s;
70+
proxy_read_timeout 600s;
71+
proxy_pass http://127.0.0.1:9876/healthy;
72+
}
73+
5374
location /bulk-ingest {
5475
if ($request_method = 'OPTIONS') {
5576
add_header 'Access-Control-Allow-Origin' '*';

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject lcmap-mastodon "3.2.3"
1+
(defproject lcmap-mastodon "3.2.4"
22
:description "Functions for LCMAP data curation"
33
:url "https://eros.usgs.gov"
44
:license {:name "Unlicense"

resources/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ services:
3737
volumes:
3838
- "/home/caustin/workspace/data:/data"
3939
environment:
40-
- SERVER_TYPE=ard
40+
- DATA_TYPE=ard
4141
- ARD_PATH=/data/ard/{tm,etm,oli_tirs}/ARD_Tile/*/CU/
4242
- ARD_HOST=http://127.0.0.1
4343
- CHIPMUNK_HOST=http://127.0.0.1:5656

0 commit comments

Comments
 (0)