mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
more nginx testing
This commit is contained in:
9
boot.sh
9
boot.sh
@@ -25,6 +25,11 @@ display_warning() {
|
|||||||
# prepare nginx config
|
# prepare nginx config
|
||||||
envsubst '$MEDIA_ROOT $STATIC_ROOT $TANDOOR_PORT' < /opt/recipes/http.d/Recipes.conf.template > /opt/recipes/http.d/Recipes.conf
|
envsubst '$MEDIA_ROOT $STATIC_ROOT $TANDOOR_PORT' < /opt/recipes/http.d/Recipes.conf.template > /opt/recipes/http.d/Recipes.conf
|
||||||
|
|
||||||
|
# start nginx early to display error pages
|
||||||
|
echo "Starting nginx"
|
||||||
|
nginx
|
||||||
|
|
||||||
|
|
||||||
echo "Checking configuration..."
|
echo "Checking configuration..."
|
||||||
|
|
||||||
# SECRET_KEY (or a valid file at SECRET_KEY_FILE) must be set in .env file
|
# SECRET_KEY (or a valid file at SECRET_KEY_FILE) must be set in .env file
|
||||||
@@ -104,10 +109,6 @@ chmod -R 755 ${MEDIA_ROOT:-/opt/recipes/mediafiles}
|
|||||||
|
|
||||||
ipv6_disable=$(cat /sys/module/ipv6/parameters/disable)
|
ipv6_disable=$(cat /sys/module/ipv6/parameters/disable)
|
||||||
|
|
||||||
# start nginx
|
|
||||||
echo "Starting nginx"
|
|
||||||
nginx
|
|
||||||
|
|
||||||
echo "Starting gunicorn"
|
echo "Starting gunicorn"
|
||||||
# Check if IPv6 is enabled, only then run gunicorn with ipv6 support
|
# Check if IPv6 is enabled, only then run gunicorn with ipv6 support
|
||||||
if [ "$ipv6_disable" -eq 0 ]; then
|
if [ "$ipv6_disable" -eq 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user