use "prod" for production environment
This commit is contained in:
parent
ee8f37a862
commit
cf9fc7efbc
@ -48,7 +48,7 @@ def make_app(config):
|
|||||||
app.register_blueprint(bp)
|
app.register_blueprint(bp)
|
||||||
app.register_blueprint(workspace_routes)
|
app.register_blueprint(workspace_routes)
|
||||||
app.register_blueprint(requests_bp)
|
app.register_blueprint(requests_bp)
|
||||||
if ENV != "production":
|
if ENV != "prod":
|
||||||
app.register_blueprint(dev_routes)
|
app.register_blueprint(dev_routes)
|
||||||
|
|
||||||
apply_authentication(app)
|
apply_authentication(app)
|
||||||
|
@ -10,7 +10,7 @@ mkdir -p crl
|
|||||||
rsync -rq crl-tmp/. crl/.
|
rsync -rq crl-tmp/. crl/.
|
||||||
rm -rf crl-tmp
|
rm -rf crl-tmp
|
||||||
|
|
||||||
if [[ $FLASK_ENV != "production" ]]; then
|
if [[ $FLASK_ENV != "prod" ]]; then
|
||||||
# place our test CRL there
|
# place our test CRL there
|
||||||
cp ssl/client-certs/client-ca.der.crl crl/
|
cp ssl/client-certs/client-ca.der.crl crl/
|
||||||
fi
|
fi
|
||||||
|
@ -9,7 +9,7 @@ echo "Resetting CA bundle..."
|
|||||||
rm ssl/server-certs/ca-chain.pem &> /dev/null || true
|
rm ssl/server-certs/ca-chain.pem &> /dev/null || true
|
||||||
touch $CA_CHAIN
|
touch $CA_CHAIN
|
||||||
|
|
||||||
if [[ $FLASK_ENV != "production" ]]; then
|
if [[ $FLASK_ENV != "prod" ]]; then
|
||||||
# only for testing and development
|
# only for testing and development
|
||||||
echo "Copy in testing client CA..."
|
echo "Copy in testing client CA..."
|
||||||
cat ssl/client-certs/client-ca.crt >> $CA_CHAIN
|
cat ssl/client-certs/client-ca.crt >> $CA_CHAIN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user