Skip to content

Commit c109801

Browse files
committed
fix: disable server reload by default
closes #142
1 parent 4e00c0e commit c109801

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ services:
9595
UPSTREAM_URL: ${UPSTREAM_URL:-http://stac:8001}
9696
OIDC_DISCOVERY_URL: ${OIDC_DISCOVERY_URL:-http://localhost:8888/.well-known/openid-configuration}
9797
OIDC_DISCOVERY_INTERNAL_URL: ${OIDC_DISCOVERY_INTERNAL_URL:-http://oidc:8888/.well-known/openid-configuration}
98+
RELOAD: true
9899
env_file:
99100
- path: .env
100101
required: false

src/stac_auth_proxy/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
},
2020
},
2121
},
22-
reload=True,
22+
reload=os.getenv("RELOAD", "").lower() in ("true", "1", "yes"),
2323
factory=True,
2424
)

0 commit comments

Comments
 (0)